Skip to content

Commit 0189cb1

Browse files
andornauttimoxley
authored andcommittedAug 6, 2020
Avoid arrow function syntax.
1 parent f25d3a1 commit 0189cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function unflatten (target, opts) {
9999
}
100100
}
101101

102-
target = Object.keys(target).reduce((result, key) => {
102+
target = Object.keys(target).reduce(function (result, key) {
103103
const type = Object.prototype.toString.call(target[key])
104104
const isObject = (type === '[object Object]' || type === '[object Array]')
105105
if (!isObject || isEmpty(target[key])) {

0 commit comments

Comments
 (0)
Please sign in to comment.