This package exports `lodash`'s internal `arrayMap` function, specifically from the `lodash` v3 ecosystem, as a standalone CommonJS module. Released around 2015, it was designed for specific modular builds of Lodash rather than general direct consumption. The core `lodash` library, now in its v4 series, has evolved significantly, and developers are strongly advised to use the stable `_.map` function directly from the main `lodash` or `lodash-es` packages. This specific internal module is no longer actively maintained or updated independently, and its usage is generally discouraged in favor of stable, public APIs. The main `lodash` library follows semantic versioning with a generally active release cadence, but this specific module is tied to an older, unmaintained major version.
npm install lodash._arraymapVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of the internal `arrayMap` function on an array, noting its CJS nature.
Migrate to `_.map` from the main `lodash` or `lodash-es` package. If specific array iteration is needed, consider native `Array.prototype.map`.
Replace `require('lodash._arraymap')` with `const _ = require('lodash');` and use `_.map(collection, iterator);` or for ESM `import { map } from 'lodash-es';` and `map(collection, iterator);`.For ESM projects, avoid using this module. Prefer `_.map` from `lodash-es` which provides full ESM support. If forced to use CJS in an ESM context, consider dynamic `import()` or specific build tool configurations.
Always use the latest stable version of the main `lodash` or `lodash-es` package and rely on its public, documented APIs (`_.map`) to ensure you receive critical security updates and benefit from improved internal hardening.
This package is CommonJS only. Either convert your file to a CommonJS module, use dynamic `import()` (if supported by your environment), or preferably, switch to `lodash-es` and use its `map` function.
Ensure the import is `const arrayMap = require('lodash._arraymap');` and that `arrayMap` is called with an array as the first argument and a function as the second, matching its internal signature.No dependency data recorded yet.