(key: K)
| 325 | */ |
| 326 | export const has = |
| 327 | <K>(key: K) => <Input extends { readonly has: (key: K) => boolean }>(input: Input): Result.Result<Input, Input> => |
| 328 | input.has(key) ? Result.succeed(input) : Result.fail(input) |
| 329 | |
| 330 | /** |
| 331 | * Creates a filter that only passes instances of the given constructor. |
no test coverage detected