mdoTomofumi Chiba
2/11/2024, 12:41:11 PM

JavaScript: true 扱いか false 扱いか

> Boolean(null)
false
> Boolean(undefined)
false
> Boolean("")
false
> Boolean(" ")
true
> Boolean([])
true
> Boolean(0)
false
> Boolean({})
true
> Boolean(NaN)
false
TweetBlueskyLike