isArray JavaScript
Simple JavaScript function that returns true if is an array or false if it’s not ;)
function isArray(obj) { if (obj.constructor.toString().indexOf("Array") == -1) return false; else return true; }
Related posts:
Web development, scripts, source code and IT stuff
Simple JavaScript function that returns true if is an array or false if it’s not ;)
function isArray(obj) { if (obj.constructor.toString().indexOf("Array") == -1) return false; else return true; }
Related posts: