Created
March 17, 2013 02:05
-
-
Save Denommus/5179228 to your computer and use it in GitHub Desktop.
Example of closure in Javascript
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
function testeClosure(x) { | |
return umaLista.filter( | |
function(y) { return x == y; } | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment