/** * Extracts the value out of the structure, if it exists. Otherwise returns * `null`. * * @tsplus getter Maybe toNullable */ export function toNullable(self: Maybe): A | null { return self.isNone() ? null : self.value }