May 15, 2020What is Shallow Comparison?
Use of Strict With Primitive Types (strings, numbers, booleans), using strict (triple) equals checks the type, then checks the value/memory. This works to ensure that one primitive is the same as another. However, this is not helpful for Complex Types (arrays, objects). This is because they are…
2 min