Skip to content

Commit 8430b33

Browse files
committed
Fix a typo in the latest til
1 parent f39e93c commit 8430b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/reach-into-an-object-for-nested-data-with-get.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ thrown. We can simultaneously avoid a bunch of exception handling logic and
2929
provide a default value with the `_.get` function:
3030

3131
```javascript
32-
_.get(resp, 'resp.error.errors[0].message', 'Default error message');
32+
_.get(resp, 'error.errors[0].message', 'Default error message');
3333
```
3434

3535
If we decide to not include a default value, then `undefined` will be used.

0 commit comments

Comments
 (0)