Checks if the input is an array.
The input to be checked if it is an array.
true if the input is an array, false otherwise.
true
false
const arr1 = [1, 2, 3];const arr2 = 'not an array';console.log(isArray(arr1)); // trueconsole.log(isArray(arr2)); // false Copy
const arr1 = [1, 2, 3];const arr2 = 'not an array';console.log(isArray(arr1)); // trueconsole.log(isArray(arr2)); // false
Generated using TypeDoc
Checks if the input is an array.