UNPKG

@d3fc/d3fc-series

Version:

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

13 lines (12 loc) 412 B
// Checks that passed properties are 'defined', meaning that calling them with (d, i) returns non null values export default function defined() { const outerArguments = arguments; return function(d, i) { for (let c = 0, j = outerArguments.length; c < j; c++) { if (outerArguments[c](d, i) == null) { return false; } } return true; }; }