Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
1+6 =