We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.2.6
https://jsfiddle.net/15ku6ck7/1/
Just run the jsfiddle, it will output: "b is not undefined, it is: false; s is undefined" b is of Boolean type, s is of String type
b is also undefined if not provided
b is false
The text was updated successfully, but these errors were encountered:
This is a feature, not a bug. I can't think of a case where undefined is more useful - and changing it would be a breaking change for little gain.
Sorry, something went wrong.
@yyx990803 Sometimes i want to know whether a prop is provided by parent component, so i check if it is undefined
@yyx990803 +1
No branches or pull requests
Version
2.2.6
Reproduction link
https://jsfiddle.net/15ku6ck7/1/
Steps to reproduce
Just run the jsfiddle, it will output: "b is not undefined, it is: false; s is undefined"
b is of Boolean type, s is of String type
What is expected?
b is also undefined if not provided
What is actually happening?
b is false
The text was updated successfully, but these errors were encountered: