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 authored and dead-claudia committed Oct 31, 2024
1 parent ddebe4f commit fa0c90d
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 fa0c90d

Please sign in to comment.