transform/pivot array of objects based on values of a key and reconvert it back to original in javascript
I want be able to convert below array or objects with uniform keys, but have it pivoted or transformed into array of objects, but with as many objects as there are properties in an object, with each object now having…