main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
487 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var aSet = require('../internals/a-set');
|
---|
4 | var add = require('../internals/set-helpers').add;
|
---|
5 |
|
---|
6 | // `Set.prototype.addAll` method
|
---|
7 | // https://github.com/tc39/proposal-collection-methods
|
---|
8 | $({ target: 'Set', proto: true, real: true, forced: true }, {
|
---|
9 | addAll: function addAll(/* ...elements */) {
|
---|
10 | var set = aSet(this);
|
---|
11 | for (var k = 0, len = arguments.length; k < len; k++) {
|
---|
12 | add(set, arguments[k]);
|
---|
13 | } return set;
|
---|
14 | }
|
---|
15 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.