code: function allIndexes(from, what) {
      var indices = new Array();
      var index = 0;
      var i=0;
      while((index = from.indexOf(what, index)) > 0) {
          indices[i] = index;
          index++
          i++;
       }
      return indices;
  }
docs: Helpers