UNPKG

@d3fc/d3fc-series

Version:

A collection of components for rendering data series to SVG and canvas, including line, bar, OHLC, candlestick and more

18 lines (14 loc) 362 B
export default initialValues => { const env = Object.assign({}, initialValues); const base = () => {}; Object.keys(env).forEach(key => { base[key] = (...args) => { if (!args.length) { return env[key]; } env[key] = args[0]; return base; }; }); return base; };