Feed on
Posts
Comments

Archive for March 21st, 2008

Steve has gotten interesting research which is making trim method and optimizing internal to JavaScript.
These are codes.
function trim11 (str) {
str = str.replace(/^\s+/, ”);
for (var i = str.length - 1; i > 0; i– ;) {
if (/\S/.test(str.charAt(i))) {
[...]

Read Full Post »