UNPKG

better-npm-init

Version:

A better version of npm init, with templates and more. Usage: better-npm-init <template> [--yarn] [--install] [--git] [--yes] [--help]

10 lines (8 loc) 236 B
import { isFunction } from "./isFunction"; /** * Tests to see if the object is "thennable". * @param value the object to test */ export function isPromise(value: any): value is PromiseLike<any> { return isFunction(value?.then); }