Hex Core JS
    Preparing search index...

    Function invertObject

    • Returns an object with the keys and values inverted from the given object.

      Note: converts number keys to strings.

      Type Parameters

      • K extends string | number | symbol
      • V extends string | number | symbol

      Parameters

      • object: Record<K, V>

        The object to invert.

      Returns Record<V, K>