We all use spread operator in javascript to create clone(shallow copy) of object or array. As we create shallow copy using spread operator, any change in cloned copy must not change in the original copy of the data. Let us understand with one example...

Markdown supported · ⌘↵ to post
No responses yet.