JSFiddle - React, Tailwind, and code Playground

by Dmitri Ganenco

JavaScript

const arr = [{
    id1: {
      props1: 1,
      props2: 2,
      props3: 3
    }
  },
  {
    id2: {
      props1: 1,
      props2: 3,
      props3: 4
    }
  },
  {
    id3: {
      props1: 1,
      props2: 2,
      props3: 4
    }
  },
  {
    id4: {
      props1: 2,
      props2: 2,
      props3: 3
    }
  },
  {
    id5: {
      props1: 2,
      props2: 2,
      props3: 4
    }
  }
];

const reduced = Object.keys(arr).reduce((a, c) => {
	const filtered
  return a;
}, []);