GitHub repository
necolas/dom-closest
For a given DOM element, find the first ancestor that matches a given CSS selector.
Repository metrics
- Stars · Nov 15, 2026
- 23
- Leaderboard status
- Outside the current top 1,000
Language JavaScript
Source: GitHubLB snapshots.