А
Size: a a a
А
А
DE
А
CM
DE
А
DE
А
А
p
[{ id: 1, title: 'test 1' }, { id: 2, title: 'test 2' }, { id: 3, title: 'test 3' }, { id: 4, title: 'test 4' }]
Напиши функцию, которая будет возвращать [4, 3, 2, 1] если подашь туда данные выше[{ id: 1, title: 'test 1' }, { id: 2, title: 'test 2' }] , то вернуться должно [2, 1]
Эта функция и называется "интеграция"DE
p
p
DE
const onInput = [{ id: 5, title: 'test 1' }, { id: 6, title: 'test 2' }, { id: 7, title: 'test 3' }, { id: 8, title: 'test 4' }];[8, 7, 6, 5]S
const onInput = [{ id: 5, title: 'test 1' }, { id: 6, title: 'test 2' }, { id: 7, title: 'test 3' }, { id: 8, title: 'test 4' }];[8, 7, 6, 5]
M