Travis build: 891

This commit is contained in:
30secondsofcode
2018-12-12 17:17:27 +00:00
parent 8c3d570202
commit 830e71b2ae
11 changed files with 18 additions and 30 deletions

View File

@@ -6,7 +6,6 @@ Use the `in` operator to check if `target` exists in `obj`.
If found, return the value of `obj[target]`, otherwise use `Object.values(obj)` and `Array.prototype.reduce()` to recursively call `dig` on each nested object until the first matching key/value pair is found.
```js
const dig = (obj, target) =>
target in obj
? obj[target]