node-flatnest
node-flatnest copied to clipboard
do not add trailing dot if the object is empty
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!