Deep copy an array in Angular 2 + TypeScript

Check this:

  let cloned = source.map(x => Object.assign({}, x));

Leave a Comment