Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
simple example for the usage of lodash.js _.partial
var add = function (a, b) {
return a + b;
};
var add5 = _.partial(add, 5);
add(3,4);
// 7
add5(3);
// 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment