Object Values (Object.Values()) Method in Javascript

preview_player
Показать описание

const obj = { foo: "bar", baz: 42 };

// Array-like object
const arrayLikeObj1 = { 0: "a", 1: "b", 2: "c" };

// Array-like object with random key ordering
// When using numeric keys, the values are returned in the keys' numerical order
const arrayLikeObj2 = { 100: "a", 2: "b", 7: "c" };
Рекомендации по теме
join shbcf.ru