Function swap

  • Exchange two values in an object.

    Returns

    x' | x' = x; x'[k] = x[l]; x'[l] = x[k]

    Parameters

    • x: object

      an object

    • k: string

      a key

    • l: string

      another key

    Returns object

Generated using TypeDoc