flat

Take a nested Javascript object and flatten it, or unflatten an object with delimited keys

Browse on unpkg