get value of each field in object javascri code example Example: object to array javascript Object.values(obj)