get all object which has value of the key code example Example: js get all values of object Object.values(object1)