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