Skip to content

Instantly share code, notes, and snippets.

@raganwald
Created May 11, 2016 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganwald/04ad5586e02b9f0bf066f34989bb0f6b to your computer and use it in GitHub Desktop.
Save raganwald/04ad5586e02b9f0bf066f34989bb0f6b to your computer and use it in GitHub Desktop.
My new favourite interview question
var a = [
function () { console.log(1); },
function () { console.log(2); },
function () { console.log(3); }
];
a.forEach(Function.prototype.call.bind(Function.prototype.call));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment