I think this could be simplified to:

      var list = elem.classList;
      return list.contains('currenToRight') ||
        list.contains('currentToLeft') ||
        list.contains('rightToCurrent') ||
        list.contains('leftToCurrent') || false;