The `lodash.findwhere` package provides the `_.findWhere` utility function, originally part of Lodash v3. This standalone module is frozen at version 3.1.0, reflecting the state of the function in the broader Lodash library prior to its major v4 release. `_.findWhere` was deprecated and subsequently removed in Lodash v4 in favor of `_.find` combined with an object shorthand predicate. Consequently, this module is no longer actively maintained or receiving updates, including security patches, that are applied to the modern `lodash` package. Its primary use case now is for maintaining compatibility with legacy codebases tied to Lodash v3, or for selectively importing this specific deprecated functionality into projects that are otherwise on newer Lodash versions but require this exact behavior. Its release cadence is effectively ceased.
npm install lodash.findwhereVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and use the `findWhere` function to find an object in a collection based on a properties object, typical for legacy Lodash v3 usage.
Migrate to `_.find(collection, { property: value })` in Lodash v4+ or newer versions. For example, use `_.find(users, { age: 1, active: true })` instead of `_.findWhere(users, { age: 1, active: true })`.Avoid using this standalone module in new projects. For existing projects, prioritize refactoring to use `_.find` with an object predicate from the main `lodash` package to ensure ongoing maintenance and security.
Consolidate to a single `lodash` version (ideally v4+), and use `_.find` with an object predicate for the equivalent functionality. Audit your dependency tree to remove redundant or legacy Lodash modules.
Replace `_.findWhere(collection, predicate)` with `_.find(collection, predicate)` from Lodash v4+ or install `lodash.findwhere` explicitly if you must use the legacy function.
Install `lodash.findwhere` via `npm install lodash.findwhere` if you explicitly intend to use this deprecated module. Otherwise, consider refactoring to use `_.find` from the main `lodash` package.
No dependency data recorded yet.