Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
387 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var anObject = require('../internals/an-object');
|
---|
3 | var aFunction = require('../internals/a-function');
|
---|
4 |
|
---|
5 | // https://github.com/tc39/collection-methods
|
---|
6 | module.exports = function (/* ...elements */) {
|
---|
7 | var set = anObject(this);
|
---|
8 | var adder = aFunction(set.add);
|
---|
9 | for (var k = 0, len = arguments.length; k < len; k++) {
|
---|
10 | adder.call(set, arguments[k]);
|
---|
11 | }
|
---|
12 | return set;
|
---|
13 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.