Added Solution to Challenge (#19372)
Added a Solution to "Basic Data Structures: Generate an Array of All Object Keys with Object.keys()" 's "Get a Hint" documentation.
This commit is contained in:
committed by
Jonathan Grah
parent
9e2d073203
commit
4a29977564
@ -72,6 +72,8 @@ console.log(getArrayOfUsers(users));
|
|||||||
<section id='solution'>
|
<section id='solution'>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// solution required
|
function getArrayOfUsers(obj) {
|
||||||
|
return Object.keys(users);
|
||||||
|
}
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user