Back to TIL
April 2025
posted on 04.20.2025

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.

No reactions yet

in Naperville, IL
Last visitor from Mitaka, Japan