source: node_modules/es-toolkit/dist/compat/array/compact.mjs@ a762898

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 
1import { compact as compact$1 } from '../../array/compact.mjs';
2import { isArrayLike } from '../predicate/isArrayLike.mjs';
3
4function compact(arr) {
5 if (!isArrayLike(arr)) {
6 return [];
7 }
8 return compact$1(Array.from(arr));
9}
10
11export { compact };
Note: See TracBrowser for help on using the repository browser.