Erik Arvidsson
> > If we call it "has", should we also rename String.prototype.contains? > > > Most of the JS libraries use `has` method for checking property and key existence. I am wondering if there is Array.prototype.has how they would overload their `has` methods to work as expected with arrays, array-like and regular native objects. Also their is and Object.prototype.hasOwnProperty. For example this code is a little bit confusing for me: var arr = [1, 2, 3]; arr.hasOwnProperty(0); //true arr.has(0); //false
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

