optional/default parameters
๐ Optional Parameters
optional parameter
x?: T
is of typeT | undefined
.default parameter
x = value
is of typeT
(supposevalue
is of typeT
).
Last updated
๐ Optional Parameters
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