Working with Lodash: _.minBy() function

Medium
1
60.0% Acceptance

In this lab, you'll be working with the popular JavaScript utility library, Lodash. We will focus on the _.minBy() function, which finds the minimum element in an array based on a given iteratee function.

The _.minBy() function has the following syntax:

_.minBy(array, [iteratee=_.identity])

Where array is the array to inspect, and iteratee is the iteratee function invoked per element.

Your task is to create a function findMinAgePerson that takes an array of persons and returns the person with the minimum age. You should make use of the Lodash _.minBy() function to achieve this.

Ensure to install the lodash package by running npm install lodash.