提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
368 B

  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;