aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/builtin/es6/toPropertyKey.js
blob: 9321458ec9a46a6b0388bac9d32ac867edbb037b (plain)
1
2
3
4
5
6
7
8
import _typeof from "../../../helpers/builtin/es6/typeof";
export default function _toPropertyKey(key) {
  if (_typeof(key) === "symbol") {
    return key;
  } else {
    return String(key);
  }
}