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