Skip to content

Commit 569e3d4

Browse files
committed
remove polyfill for Object.assign()
The polyfill doesn't support multiple source objects, and almost all browsers now natively support Object.assign().
1 parent f881a8a commit 569e3d4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

util/assign.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
// This exists so I'm only saving it once.
22
"use strict"
33

4-
var hasOwn = require("./hasOwn")
5-
6-
module.exports = Object.assign || function(target, source) {
7-
for (var key in source) {
8-
if (hasOwn.call(source, key)) target[key] = source[key]
9-
}
10-
}
4+
module.exports = Object.assign

0 commit comments

Comments
 (0)