UNPKG

@d3fc/d3fc-rebind

Version:

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

8 lines (6 loc) 203 B
import regexify from './regexify'; export default (...inclusions) => { inclusions = regexify(inclusions); return (name) => inclusions.some((inclusion) => inclusion.test(name)) && name; };