{"library":"lodash._arrayeach","title":"Lodash Internal `arrayEach` Utility","description":"This package exports the internal `arrayEach` utility function from the Lodash library, specifically corresponding to `lodash` version 3.0.0, released around 2015. `arrayEach` is a foundational, optimized internal method for iterating over arrays. It differs from the public `_.forEach` in that it is strictly for arrays and doesn't handle objects or other collections. As an internal module, its primary purpose was to be consumed by other Lodash functions. While the main `lodash` library continues active development, this specific `lodash._arrayeach` module is considered a snapshot from the v3 era and has not received independent updates since its initial v3 release. Users seeking modern, maintained iteration utilities should rely on the comprehensive `lodash` package (currently v4.x) or `lodash-es` for tree-shakable builds.","language":"javascript","status":"abandoned","last_verified":"Tue Apr 21","install":{"commands":["npm install lodash._arrayeach"],"cli":null},"imports":["const arrayEach = require('lodash._arrayeach');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const arrayEach = require('lodash._arrayeach');\n\nconst numbers = [10, 20, 30, 40, 50];\nconst doubledNumbers = [];\n\nconsole.log('Original numbers:', numbers);\n\narrayEach(numbers, (value, index) => {\n  doubledNumbers[index] = value * 2;\n});\n\nconsole.log('Doubled numbers:', doubledNumbers);\n\n// Demonstrating the internal nature: it's not the public _.forEach\nconst sparseArray = [1, , 3]; // eslint-disable-line no-sparse-arrays\nconst resultSparse = [];\narrayEach(sparseArray, (value) => resultSparse.push(value === undefined ? 'undefined' : value));\nconsole.log('ArrayEach on sparse array (handles undefined):', resultSparse);","lang":"javascript","description":"Demonstrates how to import and use the internal `arrayEach` function to iterate over an array.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}