const myClonedArray = Object.assign([], myArray);
const myClonedObject = Object.assign({}, myObject);