UNPKG

tamda

Version:

Practical functional programming library for TypeScript

11 lines (10 loc) 293 B
/** * Creates an array with incremental numbers spanning from `min` to `max`. * @param min First number on the array. * @param max Last number on the array. * * @example * range(1, 5) * // [1, 2, 3, 4, 5] */ export declare function range(min: number, max: number): number[];