module.exports.getTreeClass = function (level) { if (level === 0) return 'leaf'; if (level === 1) return 'parent'; return 'ancestor'; };