decord/source/725_toKey.js
2026-08-24 06:08:38 +00:00

23 lines
414 B
JavaScript

// Module ID: 725
// Function ID: 726
// Name: toKey
// Dependencies: [638]
// Module 725 (toKey)
import isSymbol from "isSymbol" /* 638 */;
export default function toKey(str) {
if (typeof str !== "string") {
if (!isSymbol(str)) {
const text = `${str}`;
if ("0" !== `${str}`) {
let str2 = text;
} else {
str2 = "-0";
}
return str2;
}
}
return str;
};