UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

15 lines (12 loc) 268 B
/*! * @techmely/utils * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com> * MIT Licensed */ "use strict"; (() => { // src/isPromise.ts function isPromise(val) { return isObject(val) && isFunction(val.then) && isFunction(val.catch); } })();