ferrum icon indicating copy to clipboard operation
ferrum copied to clipboard

Update string.js with changes mentioned below

Open RJohnPaul opened this issue 1 year ago • 1 comments

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!

RJohnPaul avatar Oct 19 '24 04:10 RJohnPaul

Why did you remove the doc comments?

koraa avatar Oct 22 '24 09:10 koraa