decord/source/7604_flatten.js

36 lines
856 B
JavaScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 7604
// Function ID: 7605
2026-07-29 08:29:29 +00:00
// Name: flatten
// Dependencies: []
2026-08-12 06:57:52 +00:00
// Module 7604 (flatten)
2026-07-29 08:29:29 +00:00
arg5.flatten = function flatten(arr) {
const items = [];
const item = arr.forEach((arr) => {
if (Array.isArray(arr)) {
let item = arr.forEach((arr) => {
if (Array.isArray(arr)) {
let item = arr.forEach((arr) => {
if (Array.isArray(arr)) {
let item = arr.forEach((arr) => {
if (Array.isArray(arr)) {
let item = arr.forEach(() => { ... });
} else {
closure_0.push(arr);
}
});
} else {
closure_0.push(arr);
}
});
} else {
closure_0.push(arr);
}
});
} else {
closure_0.push(arr);
}
});
return items;
};