Browse Source

Add example description to get.js

content-update
anr-m 4 years ago committed by Clément
parent
commit
4a89d6ee9a
  1. 9
      subjects/get.en.md

9
subjects/get.en.md

@ -7,4 +7,11 @@ It takes 2 arguments:
- `src` an object
- `path` a string
And returns the value at the given string path.
And returns the value at the given string path.
### Example:
`
src: {nested: {key: 'peekaboo'}}
path: 'nested.key'
get(src, path) = 'peekaboo'
`

Loading…
Cancel
Save