Skip to content

Instantly share code, notes, and snippets.

@tuan

tuan/unary.js

Created Jun 14, 2016
Embed
What would you like to do?
function unary(fn) {
return (value) => fn.call(this, value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment