isin
Check if a thing is in an array
Installation
npm install isin
Usage
var isin = isin; var notin = notin; var options = 12345; if console; if console;
Why
I got sick and tired of if( Array.isArray(options) && options.indexOf(foo) !== -1 )
Plus, there are 42
tests.