mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 03:32:58 +03:00
docs: Fix docs for range
This commit is contained in:
parent
1808025e30
commit
0e7e5c177c
@ -31,7 +31,7 @@ range(4);
|
||||
// Returns [0, 5, 10, 15]
|
||||
range(0, 20, 5);
|
||||
|
||||
// Returns []
|
||||
// Returns [0, -1, -2, -3]
|
||||
range(0, -4, -1);
|
||||
|
||||
// Throws an error: The step value must be a non-zero integer.
|
||||
|
@ -34,7 +34,7 @@ range(0, 20, 5);
|
||||
// Returns [0, 5, 10, 15, 20]
|
||||
range(0, 21, 5);
|
||||
|
||||
// Returns []
|
||||
// Returns [0, -1, -2, -3]
|
||||
range(0, -4, -1);
|
||||
|
||||
// Throws an error: The step value must be a non-zero integer.
|
||||
|
@ -18,7 +18,7 @@
|
||||
* range(0, 20, 5);
|
||||
*
|
||||
* @example
|
||||
* // Returns []
|
||||
* // Returns [0, -1, -2, -3]
|
||||
* range(0, -4, -1);
|
||||
*
|
||||
* @example
|
||||
|
Loading…
Reference in New Issue
Block a user