Skip to content

Instantly share code, notes, and snippets.

@gasp
Created December 29, 2014 20:07
Show Gist options
  • Save gasp/d42aac1c82b99b1ac149 to your computer and use it in GitHub Desktop.
Save gasp/d42aac1c82b99b1ac149 to your computer and use it in GitHub Desktop.
leak
var food = ["kiwi","bananas"],
poo = [],
eat = function(fruit) {
var transformed = (function(fruit) {
return fruit + " shit";
})(fruit);
return transformed;
};
for (var i = food.length - 1; i >= 0; i--) {
poo.push(eat(food[i]));
};
console.log(poo);
@i1u5
Copy link

i1u5 commented Oct 12, 2017

lmao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment