EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

WinJS.Promise.is function

Applies to Windows and Windows Phone

Determines whether a value fulfills the promise contract.

Syntax


var isPromise = WinJS.Promise.is(aPromise);

Parameters

value

Type: Object

A value that may be a promise.

Return value

Type: Boolean

true if the object conforms to the promise contract (has a then function), otherwise false.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Promise

Library

Base.js

See also

Promise

 

 

Anzeigen:
© 2014 Microsoft