The lodash at method can be used to create an array of values from an object with a given array of paths to values from the object that are to be included in the array. When using the lodash at method the oder of the index values for the elements in the resulting array correspond with the order of the paths given in the array that is passed when calling the lodash at method. So in other words this can resolve issues where the order of key names in a plain old object are not always in a desired order.
For a basic example of the lodash at method I put together a quick example that has to do with a color object. In this color object I have property key value pairs for each color channel, and and alpha value. I want an array where the first index value is the red channel, followed by green, blue, and finally the alpha channel value. The lodash _.at method can be used to create that array, and in the oder that I want the index values.
I just call the lodash _.at method, pass the color object as the first argument, and then an array of paths to each property that I want in the new array. The order in which the paths are given will be the order in which the values will be indexed in the array that will be returned by _.at.
I have an array of my color objects then I can again use the lodash _.at method to create and array of arrays by using a method like lodash map for example. I can also create just one object by changing the value of the paths string to do so.