docs: function groupArray(array, fn) {
    var ret = {};
      for (var ii = 0; ii < array.length; ii++) {
      var result = fn.call(array, array[ii], ii);
      if (!ret[result]) {
        ret[result] = [];
      }
      ret[result].push(array[ii]);
    }
    return ret;
  }