Function normalize_tuple

  • Parameters

    • tuple: any
    • mappings: any

    Returns any[]

    Deprecated

    as this uses the legacy tuple format.

    Normalizes a tuple such that unnamed fields match the values of named fields.

    Example

    const vector = tup(1, 2)({ z: 3 });
    const { x, y, z } = normalize_tuple(vector, ["x", "y", "z"]);

Generated using TypeDoc