Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants