code: function indexesOf(a, elt) {
    var ret = [], index = 0;
    while ((index = a.indexOf(elt, index)) !== -1) {
      ret.push(index++);
    }
    return ret;
  }
docs: Find all occurrences of element in an array, return indices. @NOTUSED