Home » 
        MCQs » 
        Lodash MCQs
    
        
    Which of the following methods Reduces an array to a single value by applying a function to each element and aggregating the result?
    
    
    
	18. Which of the following methods Reduces an array to a single value by applying a function to each element and aggregating the result?
    
      - _.map()
 
      - _.reduce()
 
      - _.filter
 
    
    Answer: B) _.reduce()
    Explanation:
    _.reduce() method Reduces an array to a single value by applying a function to each element and aggregating the result.