@KevinB
let assignments = [{'id': 1, 'name': 'assignment1'}, {'id': 2, 'name': 'assignment2'}]
let requests = [{'id': 1, 'name': 'request1'}, {'id': 2, 'name': 'request2'}]
let items = assignments.concat(requests)
for (let i = 0; i < items.length; i++) {
let item = items[i]
// TEST IF ITEM IS ASSIGNMENT OR REQUEST
}