node-flatnest icon indicating copy to clipboard operation
node-flatnest copied to clipboard

do not add trailing dot if the object is empty

Open Misbah-Ahmad opened this issue 3 years ago • 0 comments

I had a scenario like this :

{
    a: {
           b : {}
    }
}

In this case, we're getting the path as "a.b.", so an extra trailing dot if the value of a key is an empty object. I'm removing that extra trailing dot in this PR. Thanks!

Misbah-Ahmad avatar Feb 24 '22 11:02 Misbah-Ahmad