UNPKG

tamda

Version:

Practical functional programming library for TypeScript

20 lines (19 loc) 878 B
import { Predicate } from '../operators'; /** * Skips items at the start of an `array` while a predicate `whileFn` is true. * @param array Array to skip items in. * @param whileFn Function that determines when to stop skiping, return true to continue or false to stop. */ export declare function skipWhile<T>(array: T[], whileFn: Predicate<T>): T[]; /** * Returns a function that * skips items at the start of an `array` while a predicate `whileFn` is true. * @param whileFn Function that determines when to stop skiping, return true to continue or false to stop. */ export declare function skipWhile<T>(whileFn: Predicate<T>): typeof deferred; /** * Skips items at the start of an `array` while a previously specified predicate `whileFn` is true. * @param array Array to skip items in. */ declare function deferred<T>(array: T[]): T[]; export {};