UNPKG

fluture

Version:

FantasyLand compliant (monadic) alternative to Promises

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