followed -> followed by
This commit is contained in:
Rizky 2020-06-20 03:34:45 +00:00 committed by GitHub
parent 531864a3a8
commit 15d638e8d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ Usually that's convenient. But if we want symbolic keys too, then there's a sepa
Objects lack many methods that exist for arrays, e.g. `map`, `filter` and others.
If we'd like to apply them, then we can use `Object.entries` followed `Object.fromEntries`:
If we'd like to apply them, then we can use `Object.entries` followed by `Object.fromEntries`:
1. Use `Object.entries(obj)` to get an array of key/value pairs from `obj`.
2. Use array methods on that array, e.g. `map`.