• copd@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 days ago

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

    • rooroo@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      3 days ago

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