you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 2 years ago

Because in JS:

1 == "1" // true
1 === "1" // false
  • source
  • parent