Clara

14%
Flag icon
The other approach is to use the hasOwnProperty method, which returns true if the object has a particular property. The hasOwnProperty method does not look at the prototype chain:
JavaScript: The Good Parts: The Good Parts
Rate this book
Clear rating
Open Preview