search-deeply
v1.0.1
Published
Search deeply nested JS objects and arrays by key and value.
Maintainers
Readme
search-deeply
Search deeply nested JavaScript objects and arrays by key and optional value.
Install
npm install search-deeplyUsage
const searchDeeply = require("search-deeply");
const results = searchDeeply(data, { key: "status", value: "active" });Returns an array of matches with the path and node:
[
{ path: ['user', 'status'], node: { name: 'Alice', status: 'active' } },
...
]📝 License
This project is licensed under the MIT License.
📣 Author
Made with ❤️ by Manindra Bollam([email protected])
