• copd@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    9 hours ago

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

    • rooroo@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

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