0.1.3 • Published 7 years ago

lists-some v0.1.3

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

lists-some

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

Check if atleast one value in lists passes the test, like Array.some().

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

a = ['defence', 'of', 'the', 'ancients'];
some([a.keys(), a], (v) => v.length===2);
// true
a = {c1: 'sniper', c2: 'invoker', c3: 'kunkka'};
some([Object.keys(a), Object.values(a)], (v, i, lst) => !v.endsWith('er'));
// true
0.1.3

7 years ago

0.1.2

8 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