Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js object contain key

if ('key' in myObj)
// better
if (!myObj.hasOwnProperty('key'))
 
PREVIOUS NEXT
Tagged: #js #object #key
ADD COMMENT
Topic
Name
8+9 =