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