Typescript Create New Array With One Element Replaces