This PR adds a strict comparison for the strings. For now, we are comparing between the string returned by fread and the newline character("\n"). It's fine for now and does not affect any thing.
But, in the future, it might change as pointed out by @individual-it. So, I added string comparison as the following code will work (due to type conversion):
0 == "0"
Tldr: We don't like !=. Use !== as it does not do type conversion.
This PR adds a strict comparison for the strings. For now, we are comparing between the string returned by
fread
and the newline character("\n"). It's fine for now and does not affect any thing.But, in the future, it might change as pointed out by @individual-it. So, I added string comparison as the following code will work (due to type conversion):
Tldr: We don't like
!=
. Use!==
as it does not do type conversion.