Skip to content

Commit

Permalink
remove polyfill for Object.assign()
Browse files Browse the repository at this point in the history
The polyfill doesn't support multiple source objects, and almost all browsers now natively support Object.assign().
  • Loading branch information
kfule committed Oct 21, 2024
1 parent f881a8a commit 569e3d4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions util/assign.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// This exists so I'm only saving it once.
"use strict"

var hasOwn = require("./hasOwn")

module.exports = Object.assign || function(target, source) {
for (var key in source) {
if (hasOwn.call(source, key)) target[key] = source[key]
}
}
module.exports = Object.assign

0 comments on commit 569e3d4

Please sign in to comment.