Home | Mailing List | Blog | Tutorial Videos

Object Keys, Object Values

Consider the following object.

const obj = {
  1: 1,
  2: 2,
  3: 3
};

Is Object.keys equal to Object.values?

console.log(Object.keys(obj) == Object.values(obj));

Select one: