forgeplus-react/node_modules/@babel/runtime/helpers/es6/toPropertyKey.js

8 lines
185 B
JavaScript

import _typeof from "../../helpers/es6/typeof";
export default function _toPropertyKey(key) {
if (_typeof(key) === "symbol") {
return key;
} else {
return String(key);
}
}