Can someone help me with converting an array to an object in JavaScript? I want to set each value to "true".
The initial array is:
['lastName', 'firstName', 'email']
I need it transformed to:
{lastName: true, firstName: true, email: true}
Thank you for any assistance!