Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check for obj property

const car={type:SUV,color:'Black'}
console.log('color'in car);// true
console.log('maxSpeed'in car)// false
 
PREVIOUS NEXT
Tagged: #js #check #obj #property
ADD COMMENT
Topic
Name
3+9 =