This package exports `pickByArray`, an internal utility function from the Lodash version 3.x series, specifically `3.0.2`. It was part of a modular build strategy that offered individual Lodash functions as standalone CommonJS modules. This specific function (`_pickByArray`) was an internal helper primarily used by other Lodash methods like `_.pick` and `_.omit` when an array of property names was provided, often with an optional predicate applied to those selected keys. It is distinct from the public `_.pickBy` function, which filters an object's properties based on a predicate applied to all its own enumerable properties. The package has not been updated since the Lodash v3 era (published around January 2015). Modern Lodash (v4.x and above, with current stable version 4.18.1) integrates such functions directly into its core, and its modular `lodash-es` build offers full tree-shaking support, negating the need for these granular, unmaintained internal modules. Developers are strongly advised to use the actively maintained `lodash` or `lodash-es` package and its public APIs.
npm install lodash._pickbyarrayVerified import paths — ran on the pinned version, not inferred.
Shows how to use the legacy CommonJS `lodash._pickbyarray` module and contrasts its internal usage with the modern, public `_.pickBy` from the main Lodash package.
Migrate to using the actively maintained full `lodash` or `lodash-es` package (current stable v4.18.1). Access the public `_.pickBy` utility (for filtering by predicate) or `_.pick` (for picking specific keys) directly. This ensures you benefit from active maintenance, security patches, and modern ES module support.
For filtering object properties based on a predicate, use `_.pickBy(object, predicate)` from the main `lodash` package. For picking specific keys without a predicate, use `_.pick(object, ['key1', 'key2'])`. Do not attempt to replicate `_.pickBy` functionality using this internal module.
Refactor imports to use either `import { pickBy } from 'lodash-es';` for ESM environments with tree-shaking, or `const pickBy = require('lodash/pickBy');` for CJS environments, or the full `_` object (`const _ = require('lodash');`).Ensure the package is correctly installed (`npm install lodash._pickbyarray`) and imported using CommonJS `require`: `const pickByArray = require('lodash._pickbyarray');`. For modern usage, consider switching to `_.pickBy` from the main `lodash` package.Change your import statement to `const pickByArray = require('lodash._pickbyarray');` for CommonJS compatibility. For modern ES module usage, you should instead use `import { pickBy } from 'lodash-es';` from the actively maintained Lodash ES module build.If you must use this legacy package, either use `const pickByArray = require('lodash._pickbyarray');` directly in your TypeScript file, or add a declaration file (`d.ts`) to inform TypeScript about its CJS export (e.g., `declare module 'lodash._pickbyarray' { function pickByArray<T>(object: T, props: string[], predicate?: (value: T[keyof T], key: keyof T, object: T) => boolean): Partial<T>; export = pickByArray; }`). However, the recommended and type-safe solution is to migrate to `import { pickBy } from 'lodash';` or `import { pickBy } from 'lodash-es';` which have official TypeScript definitions.No dependency data recorded yet.