index.js
// Pass in the base 26 string, get back integer
Pass in the base 26 string, get back integer
Pass in the base 26 string get back integer
static fromBase26(number) {
    number = number.toUpperCase();
    let s = 0,
      i = 0,
      dec = 0;
    if (number !== null && typeof number !== "undefined" && number.length > 0) {
      for (; i < number.length; i++) {
        s = number.charCodeAt(number.length - i - 1) - "A".charCodeAt(0);
        dec += Math.pow(26, i) * (s + 1);
      }
    }
    return dec - 1;
  }
static fromBase26 ( number ) { number = number . toUpperCase ( ) ; let s = 0 , i = 0 , dec = 0 ; if ( number !== null && typeof number !== "undefined" && number . length > 0 ) { for ( ; i < number . length ; i ++ ) { s = number . charCodeAt ( number . length - i - 1 ) - "A" . charCodeAt ( 0 ) ; dec += Math . pow ( 26 , i ) * ( s + 1 ) ; } } return dec - 1 ; }
Pass in the base 26 string, get back integer
Pass in the base 26 string get back integer