Skip to content

Instantly share code, notes, and snippets.

@jamesplease jamesplease/wrap-fn.js
Last active May 9, 2019

What would you like to do?
Which hook do you prefer?
// Regular usage
useWrapFn(fn, _.throttle);
// Passing options
useThrottle(fn, opts);
useWrapFn(fn, _.throttle, opts);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.