object-lastindexof
v0.1.2
Published
Get last index of value in object, like Array.lastIndexOf().
Downloads
3
Readme
object-lastindexof
Get last index of value in object, like Array.lastIndexOf().
const lastIndexOf = require('object-lastindexof');
// lastIndexOf(<object>, <search value>)
lastIndexOf({run: 'ran', Run: 'ran'}, 'ran');
// 'Run'
lastIndexOf({r: 18, R: 18, u: 21, U: 21, n: 14, N: 14}, 21);
// 'U'
lastIndexOf({r: 18, a: 1, n: 14}, 21);
// undefined