angular clone array without reference

134

angular clone array without reference -

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

angular clone array without reference -

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

Comments

Submit
0 Comments