I know that you can add items to the end of the array with concat but how do I unshift to add an item to the front?
concat
Add to the end:
var
Is there a problem doing
[data.statuses].concat(allStatuses);
If you are using ES6, you can do
var newStatuses = [data.statuses, ...allStatuses]