Merge pull request #666 from l3satwik/string-val
Object.keys() returns array of string.
This commit is contained in:
commit
630926dd2e
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ let user = {
|
|||
};
|
||||
```
|
||||
|
||||
- `Object.keys(user) = [name, age]`
|
||||
- `Object.keys(user) = ["name", "age"]`
|
||||
- `Object.values(user) = ["John", 30]`
|
||||
- `Object.entries(user) = [ ["name","John"], ["age",30] ]`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue