Returns a function which will be executed only if N milliseconds have passed without it being called. If immediate is passed, trigger the function on the leading edge, instead of the trailing.
implementation
usage
throttle
Returns a function which will be executed at most once every N milliseconds.
implementation
usage
once
Executes a function only once.
implementation
usage
curry
A way of constructing functions that allows partial application of a function’s arguments. Therefore, either you can pass all of the arguments a function is expecting and get the result, or pass a subset of those arguments and get a function back that’s waiting for the rest of the arguments.
implementation
usage
compose
Returns a complex function, which will be composed out of given functions i.e. a, b and c.
Expression - a(b(c(x))) - with x being the starting value.