object assign use shallow or deep code example Example: clone javascript object let clone = Object.assign({}, objToClone);