Travis build: 1192

This commit is contained in:
30secondsofcode
2019-06-03 09:01:19 +00:00
parent dc826b589a
commit 6a1fbf9fed
14 changed files with 59 additions and 52 deletions

View File

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