Also some other performance tips:
http://www.sitepen.com/blog/2008/05/09/string-performance-an-analysis/
disccomp, feel free to submit a ticket and a patch for the current
String#strip
http://www.prototypejs.org/contribute
- JDD
--~--~-~--~~~---~--~~
You received
disccomp wrote:
Please see this excellent breakdown of this function on cross-browser
performance to better understand the available solutions.
http://blog.stevenlevithan.com/archives/faster-trim-javascript
Awesome analysis!
I wonder if trim12 might be improved by avoiding calling slice