UNPKG

softkave-js-utils

Version:

JavaScript & Typescript utility functions, types, and classes

7 lines (6 loc) 316 B
import { AnyFn } from '../types.js'; /** * See {@link loop} * Returns a list containing results of `fn` invocations */ export declare function loopAndCollate<TOtherParams extends unknown[], TFn extends AnyFn<[number, ...TOtherParams]>>(fn: TFn, max: number, ...otherParams: TOtherParams): Array<ReturnType<TFn>>;