Function normalizeEnum

  • Normalizes an enum such that a bare string is converted to an enum using that string as the symbol.

    Parameters

    • enum_object: any

    Returns any

    Example

    // The following three lines of code are equivalent:
    normalize_enum(enm.foo);
    normalize_enum(enm["foo"]);
    normalize_enum("foo");

Generated using TypeDoc