1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Fix a typo in the latest til

This commit is contained in:
jbranchaud
2018-04-09 15:53:45 -05:00
parent f39e93c4ba
commit 8430b33e6e

View File

@@ -29,7 +29,7 @@ thrown. We can simultaneously avoid a bunch of exception handling logic and
provide a default value with the `_.get` function:
```javascript
_.get(resp, 'resp.error.errors[0].message', 'Default error message');
_.get(resp, 'error.errors[0].message', 'Default error message');
```
If we decide to not include a default value, then `undefined` will be used.