Skip to content

Ignore empty rows. #452

Open
Open

Description

@sharmankita

I was using flag ignoreEmpty for this, But somewhere we have a static code flow that all object will have same number of keys , and this flag is causing error for that.

Is there any way to ignore only completely empty rows not rows with values in some column.

EX :

a,b,c
test1,2,3

test2,3,
test3,4,5

this is giving me
[{a :test1 , b : 2 , c:3} , {a :test2 , b : 3 }, {a :test3 , b : 4 , c:5}]
but i want this

[{a :test1 , b : 2 , c:3} , {a :test2 , b : 3 , c:""}, {a :test3 , b : 4 , c:5}]
is there any way to achieve this?

Activity

  1. Kyaw-Zin-Thant commented on Dec 23, 2022

    @Kyaw-Zin-Thant

    Remove ignoreEmpty option. The result will get you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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