UNPKG

fluture

Version:

FantasyLand compliant (monadic) alternative to Promises

8 lines (6 loc) 214 B
import {isFuture} from '../future'; import {throwInvalidFuture} from '../internal/throw'; export function extractRight(m){ if(!isFuture(m)) throwInvalidFuture('extractRight', 0, m); return m.extractRight(); }