4
I wonder how I can identify which object is or is not one array
in Javascript.
I know that in jQuery there is the function $.isArray
. But I’d like to learn how to do it without the jQuery
.
I tried for the typeof
and did not return the expected result.
Example:
typeof([]) // "object"
+1 hair without jQuery :)
– Maniero