code: function swapValuesInArray (A, i, j) {
    if (i !== j) {
      const tmp = A[i];
      A[i] = A[j];
      A[j] = tmp;
    }
    return A;
  }
docs: Swaps the values in the array.
  @memberof Helpers
  @param {number[]} A The array.
  @param {number} i The index of the first value.
  @param {number} j The index of the second value.