source: node_modules/es-toolkit/dist/compat/array/compact.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 370 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const compact$1 = require('../../array/compact.js');
6const isArrayLike = require('../predicate/isArrayLike.js');
7
8function compact(arr) {
9 if (!isArrayLike.isArrayLike(arr)) {
10 return [];
11 }
12 return compact$1.compact(Array.from(arr));
13}
14
15exports.compact = compact;
Note: See TracBrowser for help on using the repository browser.