There is a property
var array = []; How can I verify that the array property is an Array type? Surely there is no one way and if possible, list them all.
There is a property
var array = []; How can I verify that the array property is an Array type? Surely there is no one way and if possible, list them all.
That is enough
function is_array (a) { return (typeof a == "object") && (a instanceof Array); } Look like that's it.
Source: https://ru.stackoverflow.com/questions/350253/
All Articles