List of utility methods to do Array Type Check
isArray(input)function isArray(input) { return Object.prototype.toString.call(input) === '[object Array]'; | |
isArray(n)function isArray(n) { return n instanceof Array; | |
isArray(o)function isArray(o) { return Object.prototype.toString.call(o) === '[object Array]'; | |
isarray(a)function isarray(a) return typeof a == 'object' && typeof a.length == 'number' && isFinite(a.length) && a.length == Math.floor(a.length) | |
isarray(e)function isarray(e) { return (e.length && typeof e !== "string"); |