Skip to content

Instantly share code, notes, and snippets.

@robertklep
Last active December 18, 2015 05:09
Show Gist options
  • Save robertklep/5730649 to your computer and use it in GitHub Desktop.
Save robertklep/5730649 to your computer and use it in GitHub Desktop.
module.exports = function blah() {
console.log('N', this.name);
};
var func = require('./func');
var partial1 = func.bind(null);
partial1(); // N: undefined
var partial2 = func.bind(func);
partial2(); // N: blah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment