Skip to main content

Home > @jsplumb/util > findAllWithFunction

findAllWithFunction() function#

Find all entries in the given array like object for which the given predicate returns true.

Signature:

export declare function findAllWithFunction<T>(a: ArrayLike<T>, predicate: (_a: T) => boolean): Array<number>;

Parameters#

ParameterTypeDescription
aArrayLike<T>
predicate(_a: T) => boolean

Returns:

Array<number>