Return the first ancestor that matches the selector.
const removeListener = (e) => { table.removeChild(component.beforeRemove(parentSelector(e.target, 'tr')));}; Copy
const removeListener = (e) => { table.removeChild(component.beforeRemove(parentSelector(e.target, 'tr')));};
Return the first ancestor that matches the selector.