django-vue3-admin-web/node_modules/@interactjs/utils/arr.d.ts
2025-10-20 21:21:14 +08:00

9 lines
510 B
TypeScript

type Filter<T> = (element: T, index: number, array: T[]) => boolean;
export declare const contains: <T>(array: T[], target: T) => boolean;
export declare const remove: <T>(array: T[], target: T) => T[];
export declare const merge: <T, U>(target: (T | U)[], source: U[]) => (T | U)[];
export declare const from: <T = any>(source: ArrayLike<T>) => T[];
export declare const findIndex: <T>(array: T[], func: Filter<T>) => number;
export declare const find: <T = any>(array: T[], func: Filter<T>) => T;
export {};