3 ms·
In that case, you could adjust the memoize function to return a copy. Altough that would lead to other problems such as shallow or deep copy and such.
by Akronymus 6y ago
In that case, you could adjust the memoize function to return a copy. Altough that would lead to other problems such as shallow or deep copy and such.