vue-app-sdk
Version:
13 lines (12 loc) • 417 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const isSymbol = require("./isSymbol.cjs");
var INFINITY = 1 / 0;
function toKey(value) {
if (typeof value == "string" || isSymbol.default(value)) {
return value;
}
var result = value + "";
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
}
exports.default = toKey;