DEV Community

Discussion on: Typical JavaScript interview exercises (explained)

Collapse
 
richseviora profile image
Rich Seviora

It's to guard against future changes. But the requirement was to "preserve immutability" and so this makes the original data set immutable going forward.