Browse Source

Update get.en.md

pull/578/head
Clément 4 years ago
parent
commit
cc98471140
  1. 11
      subjects/get.en.md

11
subjects/get.en.md

@ -9,9 +9,10 @@ It takes 2 arguments:
And returns the value at the given string path.
### Example:
`
src: {nested: {key: 'peekaboo'}}
path: 'nested.key'
get(src, path) = 'peekaboo'
`
```js
const src = { nested: { key: 'peekaboo' } }
const path = 'nested.key'
get(src, path) // -> 'peekaboo'
```

Loading…
Cancel
Save