The Javascript version of "in_array" php function from the php.js project - http://phpjs.org/
npm install in_arrayThis is the Javascript implementation of the ``in_array` php function. The function is originally made by the php.js organization and its contributors.
npm install --save in_array
`With Bower:
`
bower install --save in_array
`Or you can just download a ZIP.
Setup
###### Node or Browserify
` js
var in_array = require('in_array');
`###### Browser (Global)
` html
`Usage
` jsin_array(item, arrayOrObject, useStrictMode);
console.log(in_array(1, ['1', '2', '3'])); // Returns: true
console.log(in_array(1, ['1', '2', '3'], true)); // Returns 'false' because the strict mode is on.
console.log(in_array(1, {key: 1})); // Returns: true
``MIT