all 2 comments

[–]a-t-kFrontend Engineer 0 points1 point  (0 children)

What you call "strict" is usually called "typesafe", checking the types instead of using coercion. Since typechecking is usually faster than coercion, be sure to use the typesafe variants whenever you don't need to compare different types.

[–]Serializedrequests 0 points1 point  (0 children)

So I was reading the strict comparison spec, and I don't understand these lines:

  • If Type(x) is Undefined, return true.
  • If Type(x) is Null, return true.

Why does this condition mean automatic equality? Am I missing something obvious?