โ ๏ธ Be careful when replacing classic ===๐๐๐๐ with Ramda APi ๐น.๐๐๐ต๐๐() because it could mislead โฉ๏ธ your business logic.
Imagine you declare an object but does not assign it.
๐๐๐ ๐๐๐ถ๐๐ ๐๐;
And later๐ in the code you set it to null when there is an errorโ:
And somewhere๐ฏ in the code you check with ===๐ง๐ฎ๐ฅ๐ฅ, your order:
if you replace it with ๐น.๐๐๐ต๐๐() of Ramda API, you will take the ๐๐๐๐ values AND the ๐๐๐ ๐๐๐๐๐๐ values.
Maybe you process the ๐๐๐ ๐๐๐๐๐๐ later in the business implementation, in such case, the ๐น.๐๐๐ต๐๐() will mislead๐ฅ your intent.
#javascript #programming #nullcheck #ramda