|
|
@ -2,13 +2,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
### Instructions |
|
|
|
### Instructions |
|
|
|
|
|
|
|
|
|
|
|
Create the `get` function. |
|
|
|
Create a function named `get` which takes two arguments: |
|
|
|
It takes 2 arguments: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- `src` an object |
|
|
|
- `src`: an object. |
|
|
|
- `path` a string |
|
|
|
- `path`: a string representing a path. |
|
|
|
|
|
|
|
|
|
|
|
And returns the value at the given string path. |
|
|
|
Your function will return the value at the given `path` in the `src` object. |
|
|
|
|
|
|
|
|
|
|
|
### Example: |
|
|
|
### Example: |
|
|
|
|
|
|
|
|
|
|
|