Travis build: 1875

This commit is contained in:
30secondsofcode
2020-04-15 17:47:18 +00:00
parent 8b7c789a32
commit f2e55d7ea7
13 changed files with 109 additions and 76 deletions

View File

@ -9,7 +9,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]