...
/Map API Improvements: Fetch Operations
Map API Improvements: Fetch Operations
This lesson explains the new methods added in Map API for fetch operations.
We'll cover the following...
If you have used Map
then you must have faced a challenge where you needed to update the value of a key in the Map
. Now, before updating, you must first check if the value is present in the Map
, get the current value, update it, and again put the value in the Map
. This is quite a cumbersome process, and it involves using lots of if/else statements. This kind of code is difficult to understand and ...