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.
This commit is contained in:
joelzehring 2019-08-11 09:42:19 -07:00 committed by Tom
parent bf0a252002
commit 992fc8f1bf

View File

@ -93,7 +93,7 @@ let users = {
};
function getArrayOfUsers(obj) {
return Object.keys(users);
return Object.keys(obj);
}
console.log(getArrayOfUsers(users));