← TechnologyThe essentials of

Object.values(): values without their names

Publisher: ResumeMaker • 1 source

Published: 22 Oct 2026 13:13 · Updated: 22 Oct 2026 13:13

AI source check: 21 Oct 2026 12:40. This is not editorial approval.

In a few sentences

In brief

When converting, the direct connection to the keys in the received array is lost.

Useful to know

Object.values() returns the values of its own enumerable properties with string keys. For example, Object.values({a: 2, b: 5}) gives [2, 5]. [1]

This can help add up known number fields. Before the calculation, check the types: value "5" is text and can change the behavior of +. If field names are still needed, select a representation with key-value pairs. The resulting list does not itself keep a separate label for the origin of each number.

Sources

For further detail and to check the information:

  1. [1] MDN — Object.values ↗