decord/source/725_toKey.js

22 lines
389 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 725
// Function ID: 726
2026-07-20 16:05:17 +00:00
// Name: toKey
2026-07-29 08:29:29 +00:00
// Dependencies: [638]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 725 (toKey)
2026-07-20 16:05:17 +00:00
2026-08-04 21:03:28 +00:00
export default function toKey(str) {
if (typeof str !== "string") {
if (!require(638) /* isSymbol */(str)) {
const text = `${str}`;
if ("0" !== `${str}`) {
2026-07-20 16:05:17 +00:00
let str2 = text;
} else {
str2 = "-0";
}
return str2;
}
}
2026-08-04 21:03:28 +00:00
return str;
2026-07-20 16:05:17 +00:00
};