There is an interseting examination of varions trim functions here:
<URL: http://blog.stevenlevithan.com/archi...rim-javascript >
The best all-round function seems to be trim3 when strings have lots
of leading and trailing whitespace, which is when other functions slow
down and speed is of most importance.
--
Rob
<URL: http://blog.stevenlevithan.com/archi...rim-javascript >
The best all-round function seems to be trim3 when strings have lots
of leading and trailing whitespace, which is when other functions slow
down and speed is of most importance.
--
Rob
Comment