es-next-tools
Version:
A comprehensive utility library for JavaScript and TypeScript that provides a wide range of functions for common programming tasks, including mathematical operations, date manipulations, array and object handling, string utilities, and more.
10 lines (9 loc) • 356 B
TypeScript
/**
* Generates a range of numbers from start to end (inclusive).
* @param {number} start - The starting number of the range.
* @param {number} end - The ending number of the range.
* @returns An array of numbers from start to end.
* @example
* range(1, 5); // [1, 2, 3, 4, 5]
*/
export declare function range(start: number, end: number): number[];