Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

object contains property javascript

if (x.hasOwnProperty('y')) {}

//or

if ('y' in x) {}

//or

if (x?.y){}
Source by dmitripavlutin.com #
 
PREVIOUS NEXT
Tagged: #object #property #javascript
ADD COMMENT
Topic
Name
2+9 =