another javascript function for trim a string from white space at the front.(It will need some change for RTrim and Trim),I don’t konw there is faster way than below
Tweet
SaveShareSend
Tags: javascript
Comments
kenman replied ago:
Just use regex, no need to turn a 1-liner into a 19-liner.
dzonelurker replied ago:
... unless you want a really fast solution for a standard task. You find several trim implementation comparisons on the Internet. Regex is not the fastest.
Voters For This Link (9)
Voters Against This Link (1)