Your IP : 216.73.217.13


Current Path : /home/deltalab/PMS/logistic-backend/node_modules/@angular-devkit/core/src/utils/
Upload File :
Current File : //home/deltalab/PMS/logistic-backend/node_modules/@angular-devkit/core/src/utils/lang.js

"use strict";
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPromise = void 0;
// Borrowed from @angular/core
/**
 * Determine if the argument is shaped like a Promise
 */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function isPromise(obj) {
    // allow any Promise/A+ compliant thenable.
    // It's up to the caller to ensure that obj.then conforms to the spec
    return !!obj && typeof obj.then === 'function';
}
exports.isPromise = isPromise;