• shape_warrior_t
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 个月前

    a === b returns true if a and b have the same type and are considered equal, and false otherwise. If a is null and b is a boolean, it will simply return false.

    • ulterno
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      3 个月前

      I see, so logically it is fine.
      Just not in the context.