Typescript Remove Element From Array Javascript Mdn Setter