source: trip-planner-front/node_modules/@angular-devkit/core/src/utils/lang.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 696 bytes
RevLine 
[6a3a178]1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.isPromise = void 0;
11// Borrowed from @angular/core
12/**
13 * Determine if the argument is shaped like a Promise
14 */
15// eslint-disable-next-line @typescript-eslint/no-explicit-any
16function isPromise(obj) {
17 // allow any Promise/A+ compliant thenable.
18 // It's up to the caller to ensure that obj.then conforms to the spec
19 return !!obj && typeof obj.then === 'function';
20}
21exports.isPromise = isPromise;
Note: See TracBrowser for help on using the repository browser.