|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
281 bytes
|
| Line | |
|---|
| 1 | import { rest as rest$1 } from '../../function/rest.mjs';
|
|---|
| 2 |
|
|---|
| 3 | function rest(func, start = func.length - 1) {
|
|---|
| 4 | start = Number.parseInt(start, 10);
|
|---|
| 5 | if (Number.isNaN(start) || start < 0) {
|
|---|
| 6 | start = func.length - 1;
|
|---|
| 7 | }
|
|---|
| 8 | return rest$1(func, start);
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | export { rest };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.