7 lines
227 B
JavaScript
7 lines
227 B
JavaScript
import _typeof from "./typeof.js";
|
|
import toPrimitive from "./toPrimitive.js";
|
|
function toPropertyKey(t) {
|
|
var i = toPrimitive(t, "string");
|
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
}
|
|
export { toPropertyKey as default }; |