source: trip-planner-front/node_modules/core-js/modules/esnext.composite-symbol.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 521 bytes
Line 
1var $ = require('../internals/export');
2var getCompositeKeyNode = require('../internals/composite-key');
3var getBuiltIn = require('../internals/get-built-in');
4
5// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
6$({ global: true }, {
7 compositeSymbol: function compositeSymbol() {
8 if (arguments.length === 1 && typeof arguments[0] === 'string') return getBuiltIn('Symbol')['for'](arguments[0]);
9 return getCompositeKeyNode.apply(null, arguments).get('symbol', getBuiltIn('Symbol'));
10 }
11});
Note: See TracBrowser for help on using the repository browser.