isArray < Array < JavaScript
The isArray() static method of an array determines whether the value passed is an array.
const result = Array.isArray([1, 3, 5]);
console.log(result);
// true
const result1 = Array.isArray('[]');
console.log(result1);
// false
const result2 = Array.isArray(new Array(5));
console.log(result2);
// true