mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
17 lines
519 B
TypeScript
17 lines
519 B
TypeScript
/**
|
|
* @name arrayRange
|
|
* @summary Returns a range of numbers ith the size and the specified offset
|
|
* @description
|
|
* Returns a new array of numbers with the specific size. Optionally, when `startAt`, is provided, it generates the range to start at a specific value.
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { arrayRange } from '@pezkuwi/util';
|
|
*
|
|
* arrayRange(5); // [0, 1, 2, 3, 4]
|
|
* arrayRange(3, 5); // [5, 6, 7]
|
|
* ```
|
|
*/
|
|
export declare function arrayRange(size: number, startAt?: number): number[];
|