ferrum
ferrum copied to clipboard
Update string.js with changes mentioned below
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!
Why did you remove the doc comments?