Object.assign({}, obj); // ES6 shallow copy
let copiedPerson = Object.assign({}, person);
// shallow copy :: modification in original array
var newEmployee = employee;
// Deep copy :: no modification in orifinal array
var newEmployee = JSON.parse(JSON.stringify(employee));