Merge pull request #2673 from mahdyar/patch-1

add a missing colon
This commit is contained in:
Ilya Kantor 2021-07-22 23:18:43 +03:00 committed by GitHub
commit 1bf69739d9
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 # 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. Create a function `groupById(arr)` that creates an object from it, with `id` as the key, and array items as values.