Skip to content

Commit

Permalink
Avoid arrow function syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
andornaut authored and timoxley committed Aug 6, 2020
1 parent f25d3a1 commit 0189cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function unflatten (target, opts) {
}
}

target = Object.keys(target).reduce((result, key) => {
target = Object.keys(target).reduce(function (result, key) {
const type = Object.prototype.toString.call(target[key])
const isObject = (type === '[object Object]' || type === '[object Array]')
if (!isObject || isEmpty(target[key])) {
Expand Down

0 comments on commit 0189cb1

Please sign in to comment.