Is there a straightforward way to transform this initial array:
[
"Bargain",
"deal",
"Consistent",
"Steady; regular",
"Accurately",
"a thing bought or offered for sale much more cheaply than is usual or expected.",
"Charge",
"demand (an amount) as a price for a service rendered or goods supplied."
]
Into the desired array below:
[
{"Bargain": "deal"},
{"Consistent": "Steady; regular"},
{"Accurately": "a thing bought or offered for sale much more cheaply than is usual or expected."},
{"Charge": "demand (an amount) as a price for a service rendered or goods supplied."}
]
I have attempted filtering elements from two separate arrays, but it seems overly complicated. Is there an easier solution to achieve this?
(Acknowledging that the definition for 'Accurately' may be unconventional)