L
const f = a => a.map(v => v.id).sort((l, r) => r - l)
f([{ id: 1, title: 'test 1' }, { id: 2, title: 'test 2' }, { id: 3, title: 'test 3' }, { id: 4, title: 'test 4' }])
Size: a a a
L
const f = a => a.map(v => v.id).sort((l, r) => r - l)
f([{ id: 1, title: 'test 1' }, { id: 2, title: 'test 2' }, { id: 3, title: 'test 3' }, { id: 4, title: 'test 4' }])
S
const f = a => a.map(v => v.id).sort((l, r) => r - l)
f([{ id: 1, title: 'test 1' }, { id: 2, title: 'test 2' }, { id: 3, title: 'test 3' }, { id: 4, title: 'test 4' }])
DE
const f = a => a.map(v => v.id).sort((l, r) => r - l)
f([{ id: 1, title: 'test 1' }, { id: 2, title: 'test 2' }, { id: 3, title: 'test 3' }, { id: 4, title: 'test 4' }])
А
А
DE
А
DE
CU
DE
CM
А
А
CU
CU
DE
CU