@jswork/next-find
v1.0.0
Published
Find value by path.
Downloads
24
Readme
next-find
Find value by path.
installation
npm install -S @jswork/next-find
usage
import '@jswork/next-find';
const users = [
{ 'user': 'barney', 'age': 36, 'active': true },
{ 'user': 'fred', 'age': 40, 'active': false },
{ 'user': 'pebbles', 'age': 1, 'active': true }
];
const result = nx.find(users, function(chr) {
return chr.age < 40;
},'user');
// 'barney'
license
Code released under the MIT license.