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 www.javascripttutorial.net #
PREVIOUS
NEXT
Tagged:
#check
#property
#exists
#javascript
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit