Похожие чаты

Can you return an onject from an arrow function in-line? Examples: arr.map(a

=> {
return {b: a.b, c: a.c };
});

arr.map(a => { b: a.b, c: a.c };

2 ответов

10 просмотров

arr.map(a => ({ b: a.b, c: a.c }))

arr.map(({b, c}) => ({b, c}));

Похожие вопросы

Обсуждают сегодня

Карта сайта