0👍
a?.b
is the "optional chaining" operator, which returns undefined when one of the chained properties is undefined or null.
message?.length === 1
could be replaced by message && message.length === 1
.
- [Vuejs]-Docker build for vue project module not found error
- [Vuejs]-Mutate a computed property with in a method in vue
Source:stackexchange.com