Skip to main content

Home > @jsplumb/util > each

each() function#

Iterates through the given obj and applies the given function. if obj is not ArrayLike then the function is executed directly on obj.

Signature:

export declare function each(obj: any, fn: Function): void;

Parameters#

ParameterTypeDescription
objany
fnFunction

Returns:

void