From 992fc8f1bf04bf730efffd56db0e16bf1390049d Mon Sep 17 00:00:00 2001 From: joelzehring Date: Sun, 11 Aug 2019 09:42:19 -0700 Subject: [PATCH] Update generate-an-array-of-all-object-keys-with-object.keys.english.md (#36578) Method should act on any passed parameter rather than the specific object named in this problem. --- ...rate-an-array-of-all-object-keys-with-object.keys.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/generate-an-array-of-all-object-keys-with-object.keys.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/generate-an-array-of-all-object-keys-with-object.keys.english.md index c4b2956c45..a64f0b72fe 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/generate-an-array-of-all-object-keys-with-object.keys.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/generate-an-array-of-all-object-keys-with-object.keys.english.md @@ -93,7 +93,7 @@ let users = { }; function getArrayOfUsers(obj) { - return Object.keys(users); + return Object.keys(obj); } console.log(getArrayOfUsers(users));