Skip to content

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
@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