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

Add element NotNil function #130

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Add element NotNil function #130

merged 1 commit into from
Apr 28, 2024

Conversation

beevik
Copy link
Owner

@beevik beevik commented Apr 28, 2024

NotNil returns the receiver element if it isn't nil; otherwise, it returns an unparented element with an empty string tag. This function simplifies the task of writing code to ignore not-found results from element queries.

NotNil returns the receiver element if it isn't nil; otherwise, it returns
an unparented element with an empty string tag. This function simplifies
the task of writing code to ignore not-found results from element queries.
@beevik
Copy link
Owner Author

beevik commented Apr 28, 2024

Merged.

@beevik beevik merged commit f4e0a85 into main Apr 28, 2024
3 checks passed
@beevik beevik deleted the not-nil branch April 28, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant