Lodash _.at() Method
The _.at() method creates an array of values corresponding to paths of object.
Parameters: This method accepts two parameters as mentioned above and described below:
- object: It holds the object to iterate over.
- [paths]: It holds the property paths to pick.
Return Value: This method returns the picked values.
Example 1: Here, const _ = require(‘lodash’) is used to import the lodash library in the file.
[ 7, 9 ]
[ 1900, 2400 ]