0.1.3 • Published 6 years ago

lists-lastindexof v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

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