Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
521 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var $ = require('../internals/export');
|
---|
| 2 | var getCompositeKeyNode = require('../internals/composite-key');
|
---|
| 3 | var 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.