Link Details

Link 64651 thumbnail
User 111696 avatar

By bloid
via blog.stevenlevithan.com
Published: Feb 04 2008 / 17:22

Since JavaScript doesn't include a trim method natively, it's included by countless JavaScript libraries – usually as a global function or appended to String.prototype. However, I've never seen an implementation which performs as well as it could, probably because most programmers don't deeply understand or care about regex efficiency issues.
  • 9
  • 0
  • 954
  • 254

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)