UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

10 lines 445 B
/** * Generates an array of numbers in a range with a given step. * @param {number} start - The start value. * @param {number} end - The end value (exclusive). * @param {number} [step=1] - The step value. * @returns {number[]} The array of numbers in the range. * @throws {TypeError|Error} If arguments are invalid. */ export default function range(start: number, end: number, step?: number): number[]; //# sourceMappingURL=range.d.ts.map