Working with lodash: _.keyBy()

Easy
3
29.2% Acceptance

In this lab, you will learn how to use the '.keyBy()' function from the lodash library to group an array of objects based on a specified key. You'll first import the lodash library and then create a function called 'groupedArray' that utilizes '.keyBy()' to return the grouped results. Finally, you'll export the function using ESM syntax.