UNPKG

@boost/core

Version:

Robust pipeline for creating dev tools that separate logic into routines and tasks.

10 lines (9 loc) 283 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Wrap a value in a promise if it has not already been. */ function wrapWithPromise(value) { return value instanceof Promise ? value : Promise.resolve(value); } exports.default = wrapWithPromise;