6 lines
143 B
Plaintext
6 lines
143 B
Plaintext
|
module.exports.getTreeClass = function (level) {
|
||
|
if (level === 0) return 'leaf';
|
||
|
if (level === 1) return 'parent';
|
||
|
return 'ancestor';
|
||
|
};
|