4 ms·
Reduce requires that functions be pure (no side effects). Immutable.js is one way to enforce this but ithe is not required. The examples mostly use things like
by vkjv 11y ago
Reduce requires that functions be pure (no side effects). Immutable.js is one way to enforce this but ithe is not required.
The examples mostly use things like the spread operator and Object.assign.