Skip to main content

Home > @jsplumbtoolkit/browser-ui > eachNotEmpty

eachNotEmpty() function

Runs the given function for each value in the array that is not null and has a non-zero length.

Signature:

export declare function eachNotEmpty(strings: Array<string>, fn: (idx: number, s: string) => any): void;

Parameters

ParameterTypeDescription
stringsArray<string>
fn(idx: number, s: string) => any

Returns:

void