Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if object is not defined js

if (typeof car.color === 'undefined') {
  // color is undefined
}
 
PREVIOUS NEXT
Tagged: #check #object #defined #js
ADD COMMENT
Topic
Name
4+9 =