forked from Gitlink/forgeplus-react
11 lines
201 B
JavaScript
11 lines
201 B
JavaScript
|
|
var _typeof = require("../helpers/typeof");
|
||
|
|
|
||
|
|
function _toPropertyKey(key) {
|
||
|
|
if (_typeof(key) === "symbol") {
|
||
|
|
return key;
|
||
|
|
} else {
|
||
|
|
return String(key);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = _toPropertyKey;
|