DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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 stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#check
#array
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit