WinJS.Promise.any function

Returns a promise that is fulfilled when one of the input promises has been fulfilled.

Syntax

var promise = WinJS.Promise.any(promiseArray);

Parameters

  • value
    Type: Array

    An array that contains Promise objects or objects whose property values include Promise objects.

Return value

Type: Promise

A promise that on fulfillment yields the value of the input (complete or error).

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Promise

See also

Promise