decord/source/7456_flatten.js

36 lines
856 B
JavaScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7456
// Function ID: 7457
2026-07-29 08:29:29 +00:00
// Name: flatten
// Dependencies: []
2026-08-05 07:35:12 +00:00
// Module 7456 (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;
};