Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### deepGet
|
||||
---
|
||||
title: deepGet
|
||||
tags: object,intermediate
|
||||
---
|
||||
|
||||
Returns the target value in a nested JSON object, based on the `keys` array.
|
||||
|
||||
@ -22,4 +25,4 @@ const data = {
|
||||
};
|
||||
deepGet(data, ['foo', 'foz', index]); // get 3
|
||||
deepGet(data, ['foo', 'bar', 'baz', 8, 'foz']); // null
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user