findIndex

Array-like helper that returns the index of the first matching record.

Usage

const i = ds.findIndex(r => r.Id === 1);

API

findIndex(predicate: (value: DataRecord<T>, index: number, obj: StorageArray<T>) => unknown): number;

Last updated

Was this helpful?