8.0.0 • Published 3 years ago

keys-for-same-value v8.0.0

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

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