For example, you have an object.
{ id: 1, firstName: 'John', lastName: 'Doe' }
How to get an array from the object if you know array keys? You have array keys
['firstName', 'lastName']
and you should get array
['John', 'Doe']
I use Lodash.