Travis build: 1581

This commit is contained in:
30secondsofcode
2018-02-07 09:31:31 +00:00
parent 3719814f25
commit 12238b8e78
4 changed files with 102 additions and 10 deletions

View File

@ -15,9 +15,7 @@ const unflattenObject = obj =>
acc,
JSON.parse(
'{' +
keys
.map((v, i) => (i !== keys.length - 1 ? `"${v}":{` : `"${v}":`))
.join('') +
keys.map((v, i) => (i !== keys.length - 1 ? `"${v}":{` : `"${v}":`)).join('') +
obj[k] +
'}'.repeat(keys.length)
)