i need to prepend value in typescript objects array
Example if array is
[
{'title':'this is post title1','content':'this is post content1'},
{'title':'this is post title2','content':'this is post content2'},
{'title':'this is post title3','content':'this is post content3'},
{'title':'this is post title4','content':'this is post content4'},
{'title':'this is post title5','content':'this is post content5'},
]
i want when i put new item in the first of this array like prepend in jQuery
[
{'title':'this is new item title','content':'this is new item content'},
{'title':'this is post title1','content':'this is post content1'},
{'title':'this is post title2','content':'this is post content2'},
{'title':'this is post title3','content':'this is post content3'},
{'title':'this is post title4','content':'this is post content4'},
{'title':'this is post title5','content':'this is post content5'},
]
thanks in advance