I'm using react js on this but I think this one is a Vanilla Javascript question. What I want to achieve here is to push an array at the beginning of the lists of objects. current what I have is to append at the end of the object using concat:
this.setState({
lists: this.state.lists.concat([result])
});
How can I implement to push at the beginning of the array. This is what the data that will be push at the beginning:

this.state.lists.unshift(result)is not the best thing you can do even though it works to some extent.