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

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

    • rooroo@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      15 hours ago

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