@extra-array/take-while-right
Version:
Keeps values from right, while a test passes.
11 lines (10 loc) • 339 B
TypeScript
declare module "@extra-array/take-while-right" {
import type { testFn } from "./_types";
/**
* Keeps values from right, while a test passes.
* @param x an array
* @param ft test function (v, i, x)
*/
declare function takeWhileRight<T>(x: T[], ft: testFn<T>): T[];
export = takeWhileRight;
//# sourceMappingURL=takeWhileRight.d.ts.map}