keys-for-same-value
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

Keys for same value

Get all the keys that have a given value; anywhere in an object.

    npm i -S keys-for-same-value
const {getAllKeys} = require('keys-for-same-value');

getAllKeys('faf', {'f': 'faf', 'fa': 'faf', 'faf': 'faf', 'fafa': 'fafa'})
// returns
// ["f", "fa", "faf"]

Testing

jasmine or npm run test

License

MIT © Git Faf 2017

Readme

Keywords

Package Sidebar

Install

npm i keys-for-same-value

Weekly Downloads

0

Version

8.0.0

License

MIT

Unpacked Size

14.5 kB

Total Files

15

Last publish

Collaborators

  • iamanubhavsaini
  • git.faf