* Updated package json but not updated source files * Update eslint plugin * updated files
9 lines
220 B
TypeScript
9 lines
220 B
TypeScript
import { toDataFrame, DataFrameDTO, toCSV } from '@grafana/data';
|
|
|
|
export function dataFrameToCSV(dto?: DataFrameDTO[]) {
|
|
if (!dto || !dto.length) {
|
|
return '';
|
|
}
|
|
return toCSV(dto.map((v) => toDataFrame(v)));
|
|
}
|