function detectSeparator(a, b, step, isNum, isDescending) {
  var isChar = isCharClass(a, b, step, isNum, isDescending);
  if (!isChar) {
    return '|';
  }
  return '~';
}
function detectSeparator(a, b, step, isNum, isDescending) {
  var isChar = isCharClass(a, b, step, isNum, isDescending);
  if (!isChar) {
    return '|';
  }
  return '~';
}
function detectSeparator ( a , b , step , isNum , isDescending ) { var isChar = isCharClass ( a , b , step , isNum , isDescending ) ; if ( ! isChar ) { return '|' ; } return '~' ; }
Detect the correct separator to use
Detect the correct separator to use