UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

14 lines 432 B
import { Undefined } from '@wollybeard/kit'; export const until = (predicate) => (fns) => { // @ts-expect-error return async (...args) => { for (const fn of fns) { const result = await fn(...args); if (predicate(result)) return result; } return undefined; }; }; export const untilDefined = until(Undefined.isnt); //# sourceMappingURL=stack-processor.js.map