adobe / ferrum

Features from the rust language in javascript: Provides Traits/Type classes & a hashing infrastructure and an advanced library for working with sequences/iterators in js
https://www.ferrumjs.org
Apache License 2.0
519 stars 25 forks source link

Update string.js with changes mentioned below #248

Open RJohnPaul opened 1 month ago

RJohnPaul commented 1 month ago

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

Please ensure your pull request adheres to the following guidelines:

Related Issues

Thanks for contributing!