code: function _lastHeadIndex(buffer, value) {
          for (var i = 0; i < buffer.length; i++) {
              if (buffer[i] !== value) {
                  return i;
              }
          }
          return -1;
      }
docs: /*
  Finds last head index of the given value in the given buffer
  Otherwise it returns -1.