util.d.ts 368 B

1234
  1. export declare function find<T>(record: Record<string, T>, predicate: (v: T) => boolean): T | undefined;
  2. export declare function forEach<T>(record: Record<string, T>, run: (v: T, key: string) => void): void;
  3. export declare function includes<T>(arr: T[], value: T): boolean;
  4. export declare function findArr<T>(record: T[], predicate: (v: T) => boolean): T | undefined;