Promise.is method

4 out of 5 rated this helpful - Rate this topic

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

Base.js

See also

Promise

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.