3 ms·
But when you’re using immutable data, deep cloning is not something you need for to worry about. So it kind of is an anti-pattern in this case.
by fnordsensei 4y ago
But when you’re using immutable data, deep cloning is not something you need for to worry about. So it kind of is an anti-pattern in this case.
- DrJokepu 4y agoCopy-on-write is a common operation on immutable data and deep cloning is how you do that in JavaScript in a safe manner.
- deleted 4y ago[deleted]
- fnordsensei 4y agoOh yeah, that’s true. I was thinking of RRB trees, hash array mapped tries and things like this.