UNPKG

d3-selection

Version:

Data-driven DOM manipulation: select elements and join them to data.

13 lines (10 loc) 211 B
export default function(selector) { return function() { return this.matches(selector); }; } export function childMatcher(selector) { return function(node) { return node.matches(selector); }; }