6 lines
No EOL
208 B
JavaScript
Executable file
6 lines
No EOL
208 B
JavaScript
Executable file
import _typeof from "./typeof.js";
|
|
import toPrimitive from "./toPrimitive.js";
|
|
export default function toPropertyKey(t) {
|
|
var i = toPrimitive(t, "string");
|
|
return "symbol" == _typeof(i) ? i : String(i);
|
|
} |