Skip to content

Instantly share code, notes, and snippets.

@tuan
Created June 14, 2016 13:21
Show Gist options
  • Save tuan/f75bed9e17033eaa5cbd982da494a08f to your computer and use it in GitHub Desktop.
Save tuan/f75bed9e17033eaa5cbd982da494a08f to your computer and use it in GitHub Desktop.
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