What is this function? map function with object?

Viewed 18

I saw this kind of code:

return data.items.map(item => ({

    name: customer.name,
    
  }));

What is this in the map function? I mean I know map

but not with this arrow function and before the function bracket is another bracket

0 Answers
Related