add a missing colon

This commit is contained in:
Mahdyar Hasanpour 2021-07-17 18:05:27 +04:30 committed by GitHub
parent 2275894801
commit ce382738f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ importance: 4
# Create keyed object from array
Let's say we received an array of users in the form `{id:..., name:..., age... }`.
Let's say we received an array of users in the form `{id:..., name:..., age:... }`.
Create a function `groupById(arr)` that creates an object from it, with `id` as the key, and array items as values.