Travis build: 692

This commit is contained in:
30secondsofcode
2018-10-26 15:37:27 +00:00
parent 0614f8731c
commit 259b99fa08
10 changed files with 4 additions and 19 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]