You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
is_array = function(input) {
|
|
if (toString.call(input) === "[object Array]")
|
|
return true;
|
|
return false;
|
|
};
|
|
console.log(is_array('w3resource'));
|
|
console.log(is_array([1, 2, 4, 0]));
|