Should I use null and not undefined for nullable properties? #1931
Answered
by
posva
vatosarmat
asked this question in
Help and Questions
-
I've just started reading the documentation and wondering why it uses |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jan 14, 2023
Replies: 1 comment
-
It's just a convention and, IMO, a good practice:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vatosarmat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's just a convention and, IMO, a good practice:
null
: intentionally doesn't exist/emptyundefined
: still hasn't been given a value