src/math-helpers.js
function swapValuesInArray (A, i, j) {
  if (i !== j) {
    const tmp = A[i];
    A[i] = A[j];
    A[j] = tmp;
  }
  return A;
}
function swapValuesInArray (A, i, j) {
  if (i !== j) {
    const tmp = A[i];
    A[i] = A[j];
    A[j] = tmp;
  }
  return A;
}
function swapValuesInArray ( A , i , j ) { if ( i !== j ) { const tmp = A [ i ] ; A [ i ] = A [ j ] ; A [ j ] = tmp ; } return A ; }
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.
Swaps the values in the array .