Reduce method is not easy, help me with this problem pls.
i need a function, that receive array with anything, and returns object with fields
{field1, field2, field3, field4}
like in the example: Input:
[true,6,'wow','you are smart, bro']
Output:
{field1: true, field2:1, field3: 'wow', field4: 'you are smart, bro'}