code: function (arr, func) {
      if (!isArray(arr))
          var arg = [arg];
      for (var i = 0; i < arr.length; i++) {
          var result = func.call(window, arr[i]);
          if (typeof result !== 'undefined')
              arr[i] = result;
      }
      return arr;
  }
docs: array map