source: imaps-frontend/node_modules/core-js/modules/esnext.composite-symbol.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

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