Data Structure - 2
Map vs Array
Comparison of Set and Array
Map vs Object
Set vs Object
(Add, check, modify, delete)
1. Comparison of Map and Array
1. Increase
2. Check
3. Change
4. delete
2. Comparison of Set and Array
1. Increase
2. Check
(If you want to be true, you need to save the object after has)
3. Change
4. delete
3. Comparison of Map Set and Object
1. Increase
2. Check
3. Change
4. delete
(When it comes to data structures, you can use Map instead of arrays. If you consider data uniqueness for arrays, use Set instead of Object for storage)