source: node_modules/es-toolkit/dist/compat/_internal/flattenArrayLike.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: 451 bytes
Line 
1import { isArrayLikeObject } from '../predicate/isArrayLikeObject.mjs';
2
3function flattenArrayLike(values) {
4 const result = [];
5 for (let i = 0; i < values.length; i++) {
6 const arrayLike = values[i];
7 if (!isArrayLikeObject(arrayLike)) {
8 continue;
9 }
10 for (let j = 0; j < arrayLike.length; j++) {
11 result.push(arrayLike[j]);
12 }
13 }
14 return result;
15}
16
17export { flattenArrayLike };
Note: See TracBrowser for help on using the repository browser.