Created
February 23, 2017 10:48
-
-
Save jvmonjo/893b2ea6141551c93cbde002cf18e1f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(typeof arrayName[index] === 'undefined') { | |
// does not exist | |
} | |
else { | |
// does exist | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment