From 046137891eaee5057d7967a85ec27a2d8ecab419 Mon Sep 17 00:00:00 2001 From: bhagerty Date: Wed, 2 Sep 2020 13:06:27 -0500 Subject: [PATCH] fix(learn): clarify how object names are associated with destructured fields (#39485) * Clarify how object names are associated with destructured fields * fix: make description more concise * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com> Co-authored-by: Manish Giri --- ...ment-to-pass-an-object-as-a-functions-parameters.english.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md index 9dcbb473f6..e2b0187b02 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md @@ -26,8 +26,7 @@ const profileUpdate = ({ name, age, nationality, location }) => { } ``` -This removes some extra lines and makes our code look neat. -This has the added benefit of not having to manipulate an entire object in a function — only the fields that are needed are copied inside the function. +When profileData is passed to the above function, the values are destructured from the function parameter for use within the function. ## Instructions