Skip to content

Empty objects are ignored by flatten #177

@vickyRathee

Description

@vickyRathee

I was using with paraparase and found that it ignores the empty object/array results in [object/object] in CSV download.

[
  {
    "token": "YCMG4IRRE6",
    "payment": {
      "currency": "USD",
      "amount": 10
    },
    "tracking": {}
  }
]

 const flattenned = data.map((d) =>
    flatten(d)
  );
  return Papa.unparse(flattenned);

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions