Answers for "check isarray javascript"

21

if object is array javascript

Array.isArray(object);
Posted by: Guest on April-08-2020
0

check if is array javascript

if(Object.prototype.toString.call(someVar) === '[object Array]') {
    alert('Array!');
}
Posted by: Guest on September-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language