decord/source/757_getMapData.js

23 lines
430 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 757
// Function ID: 758
2026-07-20 16:05:17 +00:00
// Name: getMapData
2026-07-29 08:29:29 +00:00
// Dependencies: [758]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 757 (getMapData)
2026-08-24 06:08:38 +00:00
import isKeyable from "isKeyable" /* 758 */;
2026-07-20 16:05:17 +00:00
2026-08-04 21:03:28 +00:00
export default function getMapData(__data__, str) {
2026-07-20 16:05:17 +00:00
__data__ = __data__.__data__;
2026-08-24 06:08:38 +00:00
if (isKeyable(str)) {
2026-08-04 21:03:28 +00:00
str = "hash";
if (typeof str === "string") {
2026-07-20 16:05:17 +00:00
str = "string";
}
let map = __data__[str];
} else {
map = __data__.map;
}
return map;
};