fn.js
Members
-
static, constant bind
-
Bind (a.k.a proxy or Context). A simple method for changing the context of a function It also stores a unique id on the function so it can be easily removed from events.
-
static, constant debounce
-
Creates a debounced function that delays invoking
func
until afterwait
milliseconds have elapsed since the last time the debounced function was invoked.Inspired by lodash and underscore implementations.
-
static, constant throttle
-
Wraps the given function,
fn
, with a new function that only invokesfn
at most once per everywait
milliseconds.