decord/source/6474_flatten.js

36 lines
856 B
JavaScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 6474
// Function ID: 6475
2026-07-29 08:29:29 +00:00
// Name: flatten
// Dependencies: []
2026-07-30 10:14:41 +00:00
// Module 6474 (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;
};