var getTreeClass = function (level, total) { if (level === 0) return 'right'; if (level === 1 && level !== total - 1) return 'middle'; return 'left'; }; module.exports.getTreeClass = getTreeClass;