Deep copy an array in Angular 2 + TypeScript
Simple:
let objCopy = JSON.parse(JSON.stringify(obj));
This Also Works (Only for Arrays)
let objCopy2 = obj.slice()
Check this:
let cloned = source.map(x => Object.assign({}, x));
This is working for me:
this.listCopy = Object.assign([], this.list);