Skip to content

Instantly share code, notes, and snippets.

@Denommus
Created March 17, 2013 02:05
Show Gist options
  • Save Denommus/5179228 to your computer and use it in GitHub Desktop.
Save Denommus/5179228 to your computer and use it in GitHub Desktop.
Example of closure in Javascript
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