Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 477 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 477 Bytes

range

Description

Create a range on object.

Scripts

Testing

npm test

Building

npm run build

Examples

Example 1

    const r = range(2, 10);
    console.log([...r]) // [2, 3, 4, 5, 6, 7, 8, 9]

Example 2

    const r = range(2, 10, 2);
    console.log([...r]) // [2, 4, 6, 8]

Example 3

    const r = range(-2, 6, 2);
    console.log([...r]) // [-2, 0, 2, 4]