Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

esnext.array.group.js 498B

123456789101112131415
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var $group = require('../internals/array-group');
  4. var addToUnscopables = require('../internals/add-to-unscopables');
  5. // `Array.prototype.group` method
  6. // https://github.com/tc39/proposal-array-grouping
  7. $({ target: 'Array', proto: true }, {
  8. group: function group(callbackfn /* , thisArg */) {
  9. var thisArg = arguments.length > 1 ? arguments[1] : undefined;
  10. return $group(this, callbackfn, thisArg);
  11. }
  12. });
  13. addToUnscopables('group');