Home »
MCQs »
Lodash MCQs
Which of the following Lodash methods generates an object that organizes array members depending on a provided iterate function?
19. Which of the following Lodash methods generates an object that organizes array members depending on a provided iterate function?
- _.group()
- _.groupby()
- _.reduce()
Answer: B) _.groupby()
Explanation:
_.groupby() Lodash methods generate an object that organizes array members depending on a provided iterate function.