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

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

module.exports = _toPropertyKey;