From cc9847114018b1e396c07275fdec1a1ec8c3f3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 10 Jun 2020 20:44:00 +0200 Subject: [PATCH] Update get.en.md --- subjects/get.en.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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' +```