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