1 | 'use strict';
|
2 | var $ = require('../internals/export');
|
3 | var getCompositeKeyNode = require('../internals/composite-key');
|
4 | var getBuiltIn = require('../internals/get-built-in');
|
5 | var apply = require('../internals/function-apply');
|
6 |
|
7 |
|
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 | });
|