We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Object.assign
1 parent ea6846a commit 022fe39Copy full SHA for 022fe39
bench.js
@@ -26,6 +26,22 @@ var source2 = {
26
p: 16
27
};
28
29
+if (Object.assign) {
30
+ suite('Object.assign', function () {
31
+ bench('small', function () {
32
+ Object.assign({foo: 0}, {bar: 1});
33
+ });
34
+
35
+ bench('default options', function () {
36
+ Object.assign({}, {foo: 0}, {foo: 1});
37
38
39
+ bench('big', function () {
40
+ Object.assign({}, source1, source2);
41
42
43
+}
44
45
suite('object-assign', function () {
46
bench('small', function () {
47
objectAssign({foo: 0}, {bar: 1});
package.json
@@ -35,7 +35,7 @@
],
"devDependencies": {
"ava": "^0.16.0",
- "lodash": "^4.8.2",
+ "lodash": "^4.16.4",
"matcha": "^0.7.0",
"xo": "*"
}
0 commit comments