optional/default parameters
optional parameter
x?: T
is of typeT | undefined
.default parameter
x = value
is of typeT
(supposevalue
is of typeT
).
Last updated
optional parameter x?: T
is of type T | undefined
.
default parameter x = value
is of type T
(suppose value
is of type T
).
Last updated