import { isOptional } from "https://deno.land/x/unknownutil@v3.18.1/mod.ts";
Return true
if the type of predicate function x
is annotated as Optional
Type Parameters
P extends Predicate<unknown>
Parameters
x: P
Returns
x is P & WithMetadata<IsOptionalOfMetadata>