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