Finding-An-Objects-Properties

Finding and Object's Properties

Source

In JavaScript there is a built in function for all objects which returns an array with all the object’s properties.

Example

const a = {
  id: 1,
  name: "Arthur",
  species: "Aardvark"
};

console.log(Object.values(a));

// Expected Results
// Array [1, "Arthur", "Aardvark"]

#JavaScript