check if a variable is equal to a value in an array js code example
Example: how to check if something is array javascript
function isArray(value) {
return Object.prototype.toString.call(value) === "[object Array]";
}
function isArray(value) {
return Object.prototype.toString.call(value) === "[object Array]";
}