0

I am wondering that I didn't find a way to select just all of my array objects. Isn't it possible?

My objects array example:

var objects = {
  House: `some stuff`,
  Car: `some stuff`,
  Dog: `some stuff`,
  Boat: `some stuff`
};

var all = ["House", "Car", "Dog", "Boat"];
var find = all.map(name => objects[name]);
var allOutput = Group(find);

For "all" I tried:

var all = [];
var all = [""];
var all = ["*"];

Aso., but nothing worked.

Expected output: I want to get all the data by every key [name], including the key.

Pepe
  • 960
  • 9
  • 21

1 Answers1

0

maybe something like Object.entries()