Created
August 22, 2013 19:34
-
-
Save toadkicker/6311772 to your computer and use it in GitHub Desktop.
Does a variable exist?
This file contains 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
Scope.prototype.find = function(name, options) { | |
if (this.check(name, options)) { | |
return true; | |
} | |
this.add(name, 'var'); | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment