0.1.3 • Published 6 years ago

lists-findall v0.1.3

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

lists-findall

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

Get all values in lists that satisfy the test, like Array.find().

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

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

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago