Which of the following Lodash methods generates a new array by applying a function to each member of the existing array?

20. Which of the following Lodash methods generates a new array by applying a function to each member of the existing array?

  1. _.map()
  2. _.reduce()
  3. _.filter

Answer: A) _.map()

Explanation:

_.map() Lodash methods generate a new array by applying a function to each member of the existing array.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.