Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check the constructor property to find out if an object is an Array (contains the word "Array"):


function isArray(myArray) {

    return myArray.constructor.toString().indexOf("Array") > -1;

}
Source by www-db.deis.unibo.it #
 
PREVIOUS NEXT
Tagged: #check #constructor #property #find #object #Array #word
ADD COMMENT
Topic
Name
8+2 =