Search
We can get all the values of an object using Object.values(). It returns the values as an array of different types.
Object.values()
In the example given below, we are getting all the values stored in the person object.
person