|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
685 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var $ = require('../internals/export');
|
|---|
| 3 | var apply = require('../internals/function-apply');
|
|---|
| 4 | var getCompositeKeyNode = require('../internals/composite-key');
|
|---|
| 5 | var getBuiltIn = require('../internals/get-built-in');
|
|---|
| 6 | var create = require('../internals/object-create');
|
|---|
| 7 |
|
|---|
| 8 | var $Object = Object;
|
|---|
| 9 |
|
|---|
| 10 | var initializer = function () {
|
|---|
| 11 | var freeze = getBuiltIn('Object', 'freeze');
|
|---|
| 12 | return freeze ? freeze(create(null)) : create(null);
|
|---|
| 13 | };
|
|---|
| 14 |
|
|---|
| 15 | // https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
|
|---|
| 16 | $({ global: true, forced: true }, {
|
|---|
| 17 | compositeKey: function compositeKey() {
|
|---|
| 18 | return apply(getCompositeKeyNode, $Object, arguments).get('object', initializer);
|
|---|
| 19 | }
|
|---|
| 20 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.