Usage var inArray = require('in-array'); console.log(inArray(['a', 'b', 'c'], 'a')); //=> true console.log(inArray(null, 'a')); //=> false console.log(inArray(null)); //=> false