0.1.5 • Published 6 years ago

entries-findall v0.1.5

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

entries-findall

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

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

const findAll = require('entries-findall');
// findAll(<entries>, <test function>, [this], [begin=0], [end], [target=[]], [at])
// - <test function>(<value>, <key>, <entries>)
// -> <target>

findAll([5, 3, 9, 1, 1, 6].entries(), (v) => v>5);
// [9, 6]
findAll(new Set(['length', 'mass', 'time']).entries(), (v, k, ent) => k.includes('i'));
// ['time']
findAll(Object.entries({t: 20, i: 9, m: 13, e: 5}), (v, k, ent) => v<10);
// [9, 5]
0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago