Object.values
Object.values
The Object.values method converts an object into an array of its values.
So you will end up with an array of all the property values in an object.
For example if you have an object containing a few plants where the keys are the names of the plants and the values are the number of plants you have and you pass it into Object.values then it will return an array of the amount of all the plants you have.
{ mint: 2, daisy: 3, chilli: 4 } => [2, 3, 4]