decord/source/8720_compact.js

32 lines
548 B
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 8720
// Function ID: 8721
2026-07-29 08:29:29 +00:00
// Name: compact
// Dependencies: []
2026-07-31 08:44:05 +00:00
// Module 8720 (compact)
2026-07-29 08:29:29 +00:00
export default function compact(arg0) {
let num = 0;
if (null != arg0) {
num = arg0.length;
}
const items = [];
let num2 = 0;
let num3 = 0;
if (0 < num) {
do {
let tmp = arg0[num3];
let tmp2 = num2;
let tmp3 = num3;
let sum = num2;
if (tmp) {
sum = num2 + 1;
items[num2] = tmp;
}
num3 = num3 + 1;
num2 = sum;
} while (num3 < num);
}
return items;
};