@jswork/next-find

1.0.0 • Public • Published

next-find

Find value by path.

version license size download

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @jswork/next-find

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.48 kB

Total Files

5

Last publish

Collaborators

  • afeiship