Feeds:
Posts
Comments

Posts Tagged ‘Optimization’

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 »