Skip to content

Instantly share code, notes, and snippets.

@bayleedev
Last active December 4, 2016 02:49
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 bayleedev/5e70136d1f517f917323c110aa522c35 to your computer and use it in GitHub Desktop.
Save bayleedev/5e70136d1f517f917323c110aa522c35 to your computer and use it in GitHub Desktop.
function list() {
return Array.prototype.slice.call(arguments);
}
function bind(thisArg, arg1) {
return function() {
return thisArg(...[arg1, ...arguments])
};
}
var leadingThirtysevenList = bind(list, 37)
console.log(leadingThirtysevenList(1, 2, 3)) // [37, 1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment