• Inverts the key-value pairs of the object, without mutating it

    Example

    invert({ name: "John", age: 20 }); // { 20: "age", John: "name" }
    

    Parameters

    • obj: Record<string, unknown>

    Returns Record<string, unknown>

Generated using TypeDoc