$ 0 0 Or this solution: Array.prototype.includes = function (object) { return !!+~this.indexOf(object); };