DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
check null typescript
let
x
=
foo
??
bar
(
)
;
// return foo if it's not null or undefined otherwise calculate bar
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#check
#null
#typescript
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit