src/models/HexCoords.js
/**
   * @param {HexCoords} otherCoords
   * @return {bool|number} if otherCoords a direct neighbor to this, return the bearing from this to otherCoords. Otherwise return false.
   */
@param {HexCoords} otherCoords
@return {bool|number} if otherCoords a direct neighbor to this, return the bearing from this to otherCoords. Otherwise return false.
@param { HexCoords } otherCoords @return { bool|number } if otherCoords a direct neighbor to this return the bearing from this to otherCoords . Otherwise return false .
isNeighbor(otherCoords) {
    let ret = false;
    HexBearing.all.forEach(b => {
      if (this.neighbor(b).is(otherCoords)) {
        ret = b;
      }
    });
    return ret;
  }
isNeighbor ( otherCoords ) { let ret = false ; HexBearing . all . forEach ( b => { if ( this . neighbor ( b ) . is ( otherCoords ) ) { ret = b ; } } ) ; return ret ; }
@param {HexCoords} otherCoords
 @return {bool|number} if otherCoords a direct neighbor to this, return the bearing from this to otherCoords.
@param { HexCoords } otherCoords @return { bool|number } if otherCoords a direct neighbor to this return the bearing from this to otherCoords .