EN RU
Forum

Methodology

Technology

Toolbox

Libraries

Tutorials

JSDocSource

Module functions

A set of helpers to work with JavaScript functions

Object methods:

isFunction(obj):Boolean
description
Checks whether a given object is function
parameters
obj
*
noop()
description
Empty function

functions__debounce

Debounces given function
parameters
fn
Function
function to debounce
timeout
Number
debounce interval
invokeAsap
Boolean
invoke before first interval
ctx
Object
context of function invocation
returns
Function
debounced function

functions__throttle

Throttle given function
parameters
fn
Function
function to throttle
timeout
Number
throttle interval
invokeAsap
Boolean
invoke before first interval
ctx
Object
context of function invocation
returns
Function
throttled function