ObjectShallow copy an objectShallow copy an objectJavaScript versionconst shallowCopy = obj => Object.assign({}, obj);// orconst shallowCopy = obj => {...obj};