* Focuses on a subset of keys of the current struct focus. * * **Details** * * - On a Lens, returns a Lens. * - On an Optional, returns an Optional. * - Does **not** work on union types (compile error). * * **Example** (Picking keys) * * ```ts * impor
(
this: Lens<S, A>,
keys: Keys,
..._err: ForbidUnion<A, "cannot use `pick` on a union type">
)
| 794 | * |
| 795 | * @since 4.0.0 |
| 796 | */ |
| 797 | notUndefined<S, A>(this: Prism<S, A>): Prism<S, Exclude<A, undefined>> |
| 798 | notUndefined<S, A>(this: Optional<S, A>): Optional<S, Exclude<A, undefined>> |
| 799 |
no outgoing calls
no test coverage detected