We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f39e93c commit 8430b33Copy full SHA for 8430b33
javascript/reach-into-an-object-for-nested-data-with-get.md
@@ -29,7 +29,7 @@ thrown. We can simultaneously avoid a bunch of exception handling logic and
29
provide a default value with the `_.get` function:
30
31
```javascript
32
-_.get(resp, 'resp.error.errors[0].message', 'Default error message');
+_.get(resp, 'error.errors[0].message', 'Default error message');
33
```
34
35
If we decide to not include a default value, then `undefined` will be used.
0 commit comments