DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
check if property exists javascript
// the coolest way const obj = { weather: 'Sunny; } if('weather' in obj) { // do something }
Source by h.daily-dev-tips.com #
PREVIOUS
NEXT
Tagged:
#check
#property
#exists
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+6 =
Submit