14 lines
406 B
JavaScript
14 lines
406 B
JavaScript
"use strict";
|
|
/*
|
|
* Copyright The OpenTelemetry Authors
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isPromiseLike = void 0;
|
|
const isPromiseLike = (val) => {
|
|
return (val !== null &&
|
|
typeof val === 'object' &&
|
|
typeof val.then === 'function');
|
|
};
|
|
exports.isPromiseLike = isPromiseLike;
|
|
//# sourceMappingURL=utils.js.map
|