module import { Just , jid } from '../just' ; import type { Maybe } from '../maybe' ; import { Nothing , nid } from '../nothing' ; /**
 * Type guard function to tell if the provided `monad` is `Just`.
 */ export function isJust < Value > ( monad ) { return Object . prototype . hasOwnProperty . call ( monad , jid ) ; } /**
 * Type guard function to tell if the provided `monad` is `Nothing`.
 */ export function isNothing < Value > ( monad ) { return Object . prototype . hasOwnProperty . call ( monad , nid ) ; }