DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+2 =
Submit