UNPKG

@softwareventures/maintain-project

Version:

Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited

8 lines (7 loc) 798 B
export declare function findExtract<T, U extends T>(array: ArrayLike<T>, predicate: (element: T) => element is U): [U | null, T[]]; export declare function findExtract<T>(array: ArrayLike<T>, predicate: (element: T) => boolean): [T | null, T[]]; export declare function findExtractFn<T, U extends T>(predicate: (element: T) => element is U): (array: ArrayLike<T>) => [U | null, T[]]; export declare function findExtractFn<T>(predicate: (element: T) => boolean): (array: ArrayLike<T>) => [T | null, T[]]; export declare function excludeIndex<T>(array: ArrayLike<T>, index: number): T[]; export declare function splitWhere<T>(array: ArrayLike<T>, predicate: (element: T) => boolean): T[][]; export declare function splitWhereFn<T>(predicate: (element: T) => boolean): (array: ArrayLike<T>) => T[][];