Help for this page

Select Code to Download


  1. or download this
    function (orig, i, acc) {  
        if (i > orig.length) return acc;
        if (orig[i] != "") acc[acc.length] = orig[i];
        return arguments.callee(orig, (i + 1), acc);
    }("  one   two three four    ".split(" ").reverse(), 0, []).join(" ")