Language GuideBuilt-in TypesObjectMethodsvaluesOn this pagevaluesGet each value of the object as an array. {a: 1, b: 2}.values(); // [1, 2] Syntax values() Returns An array containing all the values.