UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

19 lines (18 loc) 536 B
/** * @module Collection */ /** * The `range` function return a {@link Iterable | `Iterable`} of numbers, starting from `from`,increments by 1 and stops at `to`. * @example * ```ts * import { ListCollection, range } from "@daiso-tech/core/collection"; * * const collection = new ListCollection(range(1, 10)) * collection.toArray(); * // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] * ``` * * IMPORT_PATH: `"@daiso-tech/core/collection"` * @group Utilities */ export declare function range(from: number, to: number): Iterable<number>;