Here you can find the source of isArray(n)
function isArray(n) { return n instanceof Array; }
function isArray(input) { return Object.prototype.toString.call(input) === '[object Array]';
function isArray(o) { return Object.prototype.toString.call(o) === '[object Array]';
function isarray(a) return typeof a == 'object' && typeof a.length == 'number' && isFinite(a.length) && a.length == Math.floor(a.length)
function isarray(e) { return (e.length && typeof e !== "string");