return value of object in array javascript code example Example: js get all values of object Object.values(object1)