0.1.3 • Published 7 years ago

lists-findlastindex v0.1.3

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

lists-findlastindex

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

Get index of last value in lists that satisfies the test, like Array.findIndex().

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

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