code: function listToPair(list = []) {
    const size = list.length;
    const pairList = [];
    list.forEach((name, idx) => {
      for (let i = idx; i < size; i++) {
        pairList.push([name, list[i]]);
      }
    });
    return pairList;
  }
docs: ---------------------------------------------------------------------------- Global ----------------------------------------------------------------------------