Determines whether a value fulfills the promise contract.
Syntax
var boolean = promise.is(value);
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.
Remarks
var isPromise = WinJS.Promise.is(aPromise);
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
WinJS |
|
Library |
|
See also
Build date: 12/5/2012