Partager via


QueryCollection.forEach method

Performs an action on each item in the QueryCollection.

Syntax

var queryCollection = queryCollection.forEach(callbackFn, thisArg);

Parameters

  • callbackFn
    Type: Function

    The action to perform on each item.

  • thisArg
    Type: Object

    The argument to bind to callbackFn.

Return value

Type: QueryCollection

The QueryCollection.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection