source:
node_modules/@babel/runtime/helpers/esm/toPropertyKey.js@
65b6638
Last change on this file since 65b6638 was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 208 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | import _typeof from "./typeof.js"; |
2 | import toPrimitive from "./toPrimitive.js"; | |
3 | export default function toPropertyKey(t) { | |
4 | var i = toPrimitive(t, "string"); | |
5 | return "symbol" == _typeof(i) ? i : String(i); | |
6 | } |
Note:
See TracBrowser
for help on using the repository browser.