decord/source/13101_getSupportedUnits.js

19 lines
533 B
JavaScript
Raw Normal View History

2026-07-21 22:01:30 +00:00
// Module ID: 13101
// Function ID: 99451
2026-07-20 16:05:17 +00:00
// Name: getSupportedUnits
2026-07-21 22:01:30 +00:00
// Dependencies: []
2026-07-20 16:05:17 +00:00
2026-07-21 22:01:30 +00:00
// Module 13101 (getSupportedUnits)
2026-07-20 16:05:17 +00:00
arg5.getSupportedUnits = function getSupportedUnits(locale) {
const arg1 = locale;
const units = arg1(arg6[1]).units;
return units.filter((unit) => {
let str = unit;
if (undefined === unit) {
str = "en";
}
const memoizedNumberFormat = unit(closure_1[0]).createMemoizedNumberFormat(str, { style: "unit", unit });
memoizedNumberFormat.resolvedOptions().unit === unit;
});
};