Search⌘ K

Solution to Sub-task: Map

Explore how to use JavaScript's map method to create ordered pairs from object properties. This lesson helps you understand mapping arrays and generating combinations of friend pairs with proper ordering and assignment in objects.

We'll cover the following...

Map

In this step, create combinations of pairs for each property name in the object. Make sure that new objects have pairs of friends ...