src/component.js
function dataArray(data, context) {
  data = Array.isArray(data) ? data : [data];
  return context ? data.map(d => Object.assign(Object.create(context), d)) : data;
}
function dataArray(data, context) {
  data = Array.isArray(data) ? data : [data];
  return context ? data.map(d => Object.assign(Object.create(context), d)) : data;
}
function dataArray ( data , context ) { data = Array . isArray ( data ) ? data : [ data ] ; return context ? data . map ( d => Object . assign ( Object . create ( context ) , d ) ) : data ; }
Computes the data to pass into the data join from component invocation arguments.
Computes the data to pass into the data join from component invocation arguments .