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

Update string.js with changes mentioned below #249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RJohnPaul
Copy link

Added to handle empty/whitespace strings and
Used trim() for Simplified removing first/last empty lines and also used Reduced Traversal for Combined operations for performance and clarity.

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

Added to handle empty/whitespace strings and
Used trim() for Simplified removing first/last empty lines and also used Reduced Traversal for Combined operations for performance and clarity.
@koraa
Copy link
Contributor

koraa commented Oct 22, 2024

Why did you remove the doc comments?

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.

2 participants