• Focuses to the given key of object.

    Type Parameters

    • const K extends PropertyKey

    • O extends Readonly<Record<K, unknown>>

    • V = O[K]

    Parameters

    • k: K

      The key of object to extract.

    Returns Optic<O, O, O[K], V>

    The lens for indexing.

Generated using TypeDoc