Travis build: 82 [cron]

This commit is contained in:
30secondsofcode
2018-07-14 19:42:20 +00:00
parent c9eb0b7c5b
commit 931436cad5
5 changed files with 1526 additions and 1486 deletions

View File

@ -1,9 +1,7 @@
const dig = (obj, target) =>
target in obj
? obj[target]
: Object
.values(obj)
.reduce((acc, val) => {
: Object.values(obj).reduce((acc, val) => {
if (acc !== undefined) return acc;
if (typeof val === 'object') return dig(val, target);
}, undefined);