@polkadot/util
Version:
A collection of useful utilities for @polkadot
13 lines (10 loc) • 338 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isPromise = void 0;
var _helpers = require("./helpers");
// Copyright 2017-2022 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
const isPromise = (0, _helpers.isOnObject)('catch', 'then');
exports.isPromise = isPromise;