Use the Object.values() method to convert an object khổng lồ an array of objects,e.g. Const arr = Object.values(obj). The Object.values method takes anobject as a parameter and returns an array containing the object's propertyvalues.