Skip to content

Commit 5a6de7c

Browse files
committed
fix: improve es5 compatibility (#2, #9)
1 parent db3e28d commit 5a6de7c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function defu (_obj, _defaults) {
1212
}
1313

1414
var obj = Object.assign({}, _defaults)
15-
16-
Object.keys(_obj).forEach((key) => {
15+
Object.keys(_obj).forEach(function (key) {
1716
if (key === '__proto__' || key === 'constructor') {
1817
return
1918
}
@@ -30,7 +29,6 @@ function defu (_obj, _defaults) {
3029
obj[key] = val
3130
}
3231
})
33-
3432
return obj
3533
}
3634

0 commit comments

Comments
 (0)