Merge pull request #666 from l3satwik/string-val

Object.keys() returns array of string.
This commit is contained in:
Ilya Kantor 2018-12-15 19:08:16 +03:00 committed by GitHub
commit 630926dd2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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] ]`