src/Utl.js
function replace(a, elt1, elt2) {
  var idx = a.indexOf(elt1);
  if (idx !== -1) { a[idx] = elt2; }
  return a;
}
function replace(a, elt1, elt2) {
  var idx = a.indexOf(elt1);
  if (idx !== -1) { a[idx] = elt2; }
  return a;
}
function replace ( a , elt1 , elt2 ) { var idx = a . indexOf ( elt1 ) ; if ( idx !== - 1 ) { a [ idx ] = elt2 ; } return a ; }
Replace one element in an array with another.
Replace one element in an array with another .