|
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:
498 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var $ = require('../internals/export');
|
|---|
| 3 | var $group = require('../internals/array-group');
|
|---|
| 4 | var addToUnscopables = require('../internals/add-to-unscopables');
|
|---|
| 5 |
|
|---|
| 6 | // `Array.prototype.group` method
|
|---|
| 7 | // https://github.com/tc39/proposal-array-grouping
|
|---|
| 8 | $({ target: 'Array', proto: true }, {
|
|---|
| 9 | group: function group(callbackfn /* , thisArg */) {
|
|---|
| 10 | var thisArg = arguments.length > 1 ? arguments[1] : undefined;
|
|---|
| 11 | return $group(this, callbackfn, thisArg);
|
|---|
| 12 | }
|
|---|
| 13 | });
|
|---|
| 14 |
|
|---|
| 15 | addToUnscopables('group');
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.