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:
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.