Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if object has key javascript

myObj.hasOwnProperty('key') // it checks object for particular key and not on prototype   
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #object #key #javascript
ADD COMMENT
Topic
Name
3+9 =