aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/builtin/toPropertyKey.js
blob: 7c5294c234e78850707b727e2594f8ab1021d7a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
var _typeof = require("../../helpers/builtin/typeof");

function _toPropertyKey(key) {
  if (_typeof(key) === "symbol") {
    return key;
  } else {
    return String(key);
  }
}

module.exports = _toPropertyKey;