Domanda di colloquio di Cvent

Flatten Object using array reduce method , why arrow functions are used?