Function unflatten

  • Unflatten a flat object.

    Returns

    Actual object with all it's nested structured reconstructed from the flattened properties.

    Example

    unflatten({
    a: 1,
    "b.0": 0,
    "b.1": 1,
    "c.c1": 1,
    "c.c2": 2,
    });

    // {
    // a: 1,
    // b: [0, 1],
    // c: {c1: 1, c2: 2}
    // }

    Parameters

    • inputValue: ObjectType

      Any plain object with properties representing one leaf value of the actual object.

    Returns ObjectType

Generated using TypeDoc