Spread operator clones enumerables properties
Spread operator does a shallow clone of only enumerable properties. Non-enumerable properties such as prototype will not be cloned.
Spread operator does a shallow clone of only enumerable properties. Non-enumerable properties such as prototype will not be cloned.