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

8 lines
185 B
JavaScript
Raw Normal View History

2023-07-29 21:19:10 +08:00
import _typeof from "../../helpers/es6/typeof";
export default function _toPropertyKey(key) {
if (_typeof(key) === "symbol") {
return key;
} else {
return String(key);
}
}