I just came across this post which details how to check if a variable is an array in JavaScript. The final word:
function isArray(o) { return Object.prototype.toString.call(o) === '[object Array]'; }
Scary stuff.
I just came across this post which details how to check if a variable is an array in JavaScript. The final word:
function isArray(o) { return Object.prototype.toString.call(o) === '[object Array]'; }
Scary stuff.