Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if something is array javascript


function isArray(value) {
    return Object.prototype.toString.call(value) === "[object Array]";
}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #check #array #javascript
ADD COMMENT
Topic
Name
7+5 =