What is lodash.values?
The lodash.values package is a utility library that provides a method to extract the values from an object's properties. It is part of the larger Lodash library, which offers a wide range of utility functions for common programming tasks.
Extracting values from an object
This feature allows you to extract all the values from an object's properties and return them as an array. This can be useful for iterating over values or performing operations on the values of an object.
const values = require('lodash.values');
const object = { 'a': 1, 'b': 2, 'c': 3 };
const result = values(object);
console.log(result); // [1, 2, 3]