• copd@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    17 hours ago

    besides NaN actually being a number, this could completely and easily be avoided with typescript.

    • rooroo@feddit.org
      link
      fedilink
      arrow-up
      5
      ·
      11 hours ago

      Naaah. Good programmers know how to use as any as any to make this work in typescript as well.