UNPKG

tamda

Version:

Practical functional programming library for TypeScript

10 lines 355 B
import { infer } from '../function/infer'; import { not } from '../logic/not'; export function skipWhile() { return inferred.apply(undefined, arguments); } const inferred = infer((array, whileFn) => { const index = array.findIndex(not(whileFn)); return index === -1 ? [] : array.slice(index); }); //# sourceMappingURL=skipWhile.js.map