Flattens an object into a single-level object with delimited keys.
The object to flatten
Configuration options for flattening
A single-level object with flattened keys
Will throw an error if the input is not an object
const result = flatten({ a: { b: 1 } });// result => { 'a.b': 1 } Copy
const result = flatten({ a: { b: 1 } });// result => { 'a.b': 1 }
Flattens an object into a single-level object with delimited keys.