$ npm install lodash.keyby
The lodash method _.keyBy exported as a Node.js module.
_.keyBy
Using npm:
$ {sudo -H} npm i -g npm $ npm i --save lodash.keyby
In Node.js:
var keyBy = require('lodash.keyby');
See the documentation or package source for more details.