1. Computing

hasOwnProperty

By

Definition: The hasOwnProperty method allows you to test if the object has a particular property by passing that property to the method as a string. This is not a reserved word so you can declare your own variable or function called hasOwnProperty but if you do then you will not be able to test for the existance of properties.
Examples:
if (obj.hasOwnProperty('top'))
Top Related Searches
  • existance
  • ©2014 About.com. All rights reserved.