0.1.3 • Published 6 years ago

lists-findallindices v0.1.3

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

lists-findallindices

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

Get indices of all values in lists that satisfy the test, like Array.findIndex().

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

a = ['syntax', 'description', 'examples'];
findAllIndices([a.keys(), a], (v) => v.includes('x'));
// [0, 2]
a = {t1: 'polyfill', t2: 'specifications', t3: 'compatibility'};
findAllIndices([Object.keys(a), Object.values(a)], (v, i, lst) => i.includes('2'));
// ['t2']
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