Exemplo n.º 1
0
            return function(arg) {
                if (typeof arg == "number") {
                    arg = Array.prototype.slice.call(arguments);
                }

                var val = conversions[func](arg);
                if (typeof val == "string" || val === undefined) {
                    return val; // keyword
                }

                round(val)
                return val;
            }
Exemplo n.º 2
0
 return function(arg) {
     if (typeof arg == "number")
         arg = Array.prototype.slice.call(arguments);
     return conversions[func](arg);
 }