docs: function(array, fn) {
          if (typeof array.map == "function") {
            return array.map(fn);
          } else {
            var r = [];
            var l = array.length;
            for(var i = 0; i < l; i++) {
              r.push(fn(array[i]));
            }
            return r;
          }
        }