WinJS.Promise.is function

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 WinJS version

WinJS 1.0

Namespace

WinJS.Promise

See also

Promise