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. And returns the value at the given string path.
### Example: ### Example:
` ```js
src: {nested: {key: 'peekaboo'}} const src = { nested: { key: 'peekaboo' } }
path: 'nested.key' const path = 'nested.key'
get(src, path) = 'peekaboo' get(src, path) // -> 'peekaboo'
` ```

Loading…
Cancel
Save