0.1.3 • Published 7 years ago

lists-find v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

lists-find

NOTE: lists-find was renamed to @extra-lists/find. NPM

Get first value in lists that satisfies the test, like Array.find().

const find = require('lists-find');
// find(<lists>, <test function>, [this])

a = ['edge', 'opera', 'chrome'];
find([a.keys(), a], (v) => v.includes('r'));
// 'opera'
a = {s1: 'bing', s2: 'duckduckgo', s3: 'google'};
find([Object.keys(a), Object.values(a)], (v, i, lst) => v.length>4);
// 'duckduckgo'
0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago