UNPKG

@d3fc/d3fc-rebind

Version:

Utilities for copying methods from one d3 component to another in a configurable way

8 lines (6 loc) 207 B
import regexify from './regexify'; export default (...exclusions) => { exclusions = regexify(exclusions); return (name) => exclusions.every((exclusion) => !exclusion.test(name)) && name; };