assets/js/main.js
/**
 * Returns Column header value of specified index.
 *
 * @param {number} index The column index.
 * @return {String} header value of specified index.
 */
Returns Column header value of specified index.
@param {number} index The column index.
@return {String} header value of specified index.
Returns Column header value of specified index . @param { number } index The column index . @return { String } header value of specified index .
function indexToAlpha(index) {
  let value = "",
    isMultiChar = index > 25;
  while (index > 25) {
    value += String.fromCharCode((index % 26) + 65);
    index = Math.floor(index / 26);
  }
  index = isMultiChar ? index - 1 : index;
  value += String.fromCharCode(index + 65);
  return value.split("").reverse().join("");
}
function indexToAlpha ( index ) { let value = "" , isMultiChar = index > 25 ; while ( index > 25 ) { value += String . fromCharCode ( ( index % 26 ) + 65 ) ; index = Math . floor ( index / 26 ) ; } index = isMultiChar ? index - 1 : index ; value += String . fromCharCode ( index + 65 ) ; return value . split ( "" ) . reverse ( ) . join ( "" ) ; }
Returns Column header value of specified index.
Returns Column header value of specified index .