Join Nostr
2025-05-15 10:46:26 UTC

Jari Pennanen on Nostr: Annoying: let { foo } = "bar" let { foo } = 0 let { foo } = false let { foo } = null ...

Annoying:

let { foo } = "bar"
let { foo } = 0
let { foo } = false
let { foo } = null
let { foo } = undefined

With string, number and boolean it doesn't throw error, but with null and undefined it throws error. Yeah, I kind of understand as they are 'objects', but this is annoying.

#javascript