I am quite new to Typescript so apologises if it is a simple answer.
I'm looking to remove the end item from an array.
const arr = [];
array consist of 3 classes:
{class1,class2,class3}
if .push is to input, what is to remove?
Thank you.
I am quite new to Typescript so apologises if it is a simple answer.
I'm looking to remove the end item from an array.
const arr = [];
array consist of 3 classes:
{class1,class2,class3}
if .push is to input, what is to remove?
Thank you.
Answer found here (Link) by Darren z:
arr.splice(-1)