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:
parent
bf0a252002
commit
992fc8f1bf
@ -93,7 +93,7 @@ let users = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function getArrayOfUsers(obj) {
|
function getArrayOfUsers(obj) {
|
||||||
return Object.keys(users);
|
return Object.keys(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(getArrayOfUsers(users));
|
console.log(getArrayOfUsers(users));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user