0.1.3 • Published 7 years ago

lists-lastindexof v0.1.3

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

lists-lastindexof

NOTE: lists-lastindexof was renamed to @extra-lists/last-index-of. NPM

Get last index of value in lists, like Array.lastIndexOf().

const lastIndexOf = require('lists-lastindexof');
// lastIndexOf(<lists>, <search value>)

a = ['brothers', 'brothers', 'brothers'];
lastIndexOf([a.keys(), a], 'brothers');
// 2
a = {w1: 'friends', w2: 'romans', w3: 'countrymen'};
lastIndexOf([Object.keys(a), Object.values(a)], 'romans');
// 'w2'
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.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