|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
296 bytes
|
| Line | |
|---|
| 1 | import { tail as tail$1 } from '../../array/tail.mjs';
|
|---|
| 2 | import { toArray } from '../_internal/toArray.mjs';
|
|---|
| 3 | import { isArrayLike } from '../predicate/isArrayLike.mjs';
|
|---|
| 4 |
|
|---|
| 5 | function tail(arr) {
|
|---|
| 6 | if (!isArrayLike(arr)) {
|
|---|
| 7 | return [];
|
|---|
| 8 | }
|
|---|
| 9 | return tail$1(toArray(arr));
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | export { tail };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.