object-lastindexof

0.1.2 • Public • Published

object-lastindexof

NPM

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

Readme

Keywords

Package Sidebar

Install

npm i object-lastindexof

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • wolfram77