get object values js code example Example 1: object to array javascript Object.values(obj) Example 2: javascript get values from object Object.values(data)