Lodash - _.mapValues()

Easy
2
35.7% Acceptance

In this lab, you will implement a function mapValuesFunction using Lodash's _.mapValues() which applies a given transformer function to an object's values. Lodash is a popular utility library that provides helpful methods for working with arrays, strings, numbers, and objects.

First, you need to import the lodash library using ESM syntax. Then, create and export a function named 'mapValuesFunction' that accepts an object and a transformer function as parameters. This function should use _.mapValues() to apply the given transformer function to the object's values and return the resulting object.