Skip to content
New issue

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

Allow 'undefined' in expressions #23

Open
2 tasks
zanerock opened this issue Mar 21, 2023 · 0 comments
Open
2 tasks

Allow 'undefined' in expressions #23

zanerock opened this issue Mar 21, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@zanerock
Copy link
Member

Overview

Sometimes we want to be able to say something like FOO || (BAR && FOO !== undefined) || FOO. In other words, if FOO is false (or 0, '', null, or some other false-y thing), then we want the result to be FOO so long as it's defined.

Deliverables

  • Implement.
  • Test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant