• Flattens the object into a single-depth object

    Example

    flatten({ foo: 1, bar: { foo: 2 } }); // { foo: 1, "bar.foo": 2 }
    

    Parameters

    • obj: Record<string, unknown>

    Returns Record<string, unknown>

Generated using TypeDoc