feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
@@ -0,0 +1,13 @@
import { isArrayLikeObject } from "../predicate/isArrayLikeObject.mjs";
//#region src/compat/_internal/flattenArrayLike.ts
function flattenArrayLike(values) {
const result = [];
for (let i = 0; i < values.length; i++) {
const arrayLike = values[i];
if (!isArrayLikeObject(arrayLike)) continue;
for (let j = 0; j < arrayLike.length; j++) result.push(arrayLike[j]);
}
return result;
}
//#endregion
export { flattenArrayLike };