src/iconify-hashes-js.js
/**
   * Implements the iconification strategy
   * @param input
   * @returns {Array}
   */
Implements the iconification strategy
@param input
@returns {Array}
Implements the iconification strategy @param input @returns { Array }
iconify(input){
    const hash = this.normalize(input);
    const hashArray = hash.split('');
    const output = [];
    let i = 0;
    while (i < hashArray.length) {
      const current = hashArray[i];
      const next = hashArray[i + 1];
      let symbol = {};
      if (next != null) {
        if (current.match(/[0-9]/i) && next.match(/[a-z]/i)) {
          symbol = {
            form: this.getForm(current),
            color: this.getColor(next).name
          };
          i = i + 2;
        }
      }
      if (current.match(/[0-9]/i) && (next == null || next.match(/[0-9]/i))) {
        symbol = {
          form: this.getForm(current),
          color: this.getColor().name
        };
        i++;
      }
      if (current.match(/[a-z]/i)) {
        symbol = {
          form: this.getForm(),
          color: this.getColor(current).name
        };
        i++;
      }
      output.push(symbol);
    }
    return output;
  }
iconify ( input ) { const hash = this . normalize ( input ) ; const hashArray = hash . split ( '' ) ; const output = [ ] ; let i = 0 ; while ( i < hashArray . length ) { const current = hashArray [ i ] ; const next = hashArray [ i + 1 ] ; let symbol = { } ; if ( next != null ) { if ( current . match ( / [0-9] / i ) && next . match ( / [a-z] / i ) ) { symbol = { form : this . getForm ( current ) , color : this . getColor ( next ) . name } ; i = i + 2 ; } } if ( current . match ( / [0-9] / i ) && ( next == null || next . match ( / [0-9] / i ) ) ) { symbol = { form : this . getForm ( current ) , color : this . getColor ( ) . name } ; i ++ ; } if ( current . match ( / [a-z] / i ) ) { symbol = { form : this . getForm ( ) , color : this . getColor ( current ) . name } ; i ++ ; } output . push ( symbol ) ; } return output ; }
Implements the iconification strategy
 @param input
 @returns {Array}
Implements the iconification strategy @param input @returns { Array }
// number (form) | hex (color) // number (form) | number or last // hex (color) | whatever (block)