Array.myIsArray = function(obj){ return Object.prototype.toString.call(obj) === '[object Array]' } console.log(Array.myIsArray([1,2,3]))