deno_std
deno_std copied to clipboard
Csv stringify support of an array of objects
It would be amazing if this code worked, probably by passing something like inferHeaders
option (suggested by @crowlKats).
import { stringify } from 'https://deno.land/[email protected]/csv/mod.ts';
const arr = [{ a: 1, b: 2 }, { a: 3, b: 4 }];
console.log(stringify(arr));