tjikko-studio / components

Component library for Tjikko Studio apps
0 stars 0 forks source link

Use `===` or `!==` in Javascript, not `==` or `!=` #76

Closed shawninder closed 3 years ago

shawninder commented 3 years ago

Javascript has === and !== for comparing the value AND type and it's preferable to the typeless comparisons == and != 99% of the time. The typeless comparison is especially out of place when using Typescript…

shawninder commented 3 years ago

See this StackOverflow answer for more info

highshot-rk commented 3 years ago

You are right. It is basic concept

shawninder commented 3 years ago

Yes, but I'm seeing this mistake all over the code…

shawninder commented 3 years ago

I think I removed all of them by now