How do I do simple Create, Update/Modify, Replace, Delete using immutability-helper?
If I have an array of simple values?
If I have an array of simple objects?
If my array is in another object?
If I have an object of objects? (hashes, unordered)
If I have a Map of objects? (hashes, ordered)
As a beginner, I found the official documentation a bit confusing.
You can find the answer for each individual operation in separate questions, but not laid out all together.
1. Array of simple values
2. Array of simple objects
You can use the builtin findIndex() to find an item's index based on its properties.
3. Array is in another object
4. Object of objects (hashes, unordered)
Map of objects (hashes, ordered)