Function atKey

    • Field optic: project key K, putting back with a spread-replace.

      Type Parameters

      • T
      • K extends string | number | symbol

      Parameters

      • key: K

      Returns Optic<T, T[K]>