Flattens an Object to a Map.
For Instance:
data = {a : { b : { c : 1, d: "hallo"}}} // Normal Call res = flatteObject(data) => res = {"a.b.c":1,"a.b.d":"hallo"} // With a Selected prefix 'additional.name' res = flatteObject(data,{prefix:'additional.name'}) => res = {"additional.name.a.b.c":1,"additional.name.a.b.d":"hallo"}
The flatten Object
The Data that should be converted
Optional
Generated using TypeDoc
Flattens an Object to a Map.
For Instance:
Export
Returns
The flatten Object