From 0189cb11dbc942447af78930bcb0ebc132b88384 Mon Sep 17 00:00:00 2001 From: andornaut Date: Fri, 17 Jul 2020 14:51:07 -0400 Subject: [PATCH] Avoid arrow function syntax. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f1c3832..2a5d7ca 100644 --- a/index.js +++ b/index.js @@ -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])) {