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
Actually you can use .concat in this case,
.concat
var newStatuses = [data.statuses].concat(allStatuses);