UNPKG

@babel/helpers

Version:

Collection of helper functions used by Babel transforms.

14 lines (11 loc) 344 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = toPropertyKey; var _toPrimitive = require("./toPrimitive.js"); function toPropertyKey(arg) { var key = (0, _toPrimitive.default)(arg, "string"); return typeof key === "symbol" ? key : String(key); } //# sourceMappingURL=toPropertyKey.js.map