angular clone array without reference

138

angular clone array without reference -

const myClonedArray  = Object.assign([], myArray);

angular clone array without reference -

const myClonedObject = Object.assign({}, myObject);

Comments

Submit
0 Comments