UNPKG

press-plus

Version:
8 lines (6 loc) 232 B
export function getTreeNodeUniId(nodeItem: Record<string, any> = {}) { const uniId = nodeItem?.sch_rule?.tree_node_uni_id; if (uniId) return uniId; const schId = nodeItem?.schid || ''; return schId.replace(/_\d+$/, ''); }