Skip to content Skip to sidebar Skip to footer
Showing posts with the label Immutability

Why Does This Function Mutate Data?

function bubbleSort(toSort) { let sort = toSort; let swapped = true; while(swapped) { swa… Read more Why Does This Function Mutate Data?

How Can I Return Immutable Data From Redux Reducer?

For a learning and test project, I'm trying to return immutable redux data from reducer because… Read more How Can I Return Immutable Data From Redux Reducer?

How Do I Make A JavaScript Variable Completely Immutable?

I've heard similar questions, but not the answer that I wanted; I do not count const because: 1… Read more How Do I Make A JavaScript Variable Completely Immutable?