diff --git a/subjects/get.en.md b/subjects/get.en.md index d9ebc33eb..c8f965752 100644 --- a/subjects/get.en.md +++ b/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' +```