chatty-pub/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
كارل مبارك 374620645c initial commit
2021-06-26 13:12:56 +02:00

6 lines
240 B
JavaScript

import _typeof from "@babel/runtime/helpers/typeof";
import toPrimitive from "./toPrimitive.js";
export default function _toPropertyKey(arg) {
var key = toPrimitive(arg, "string");
return _typeof(key) === "symbol" ? key : String(key);
}