cursor.map

Anywhere

cursor.map(callback, [thisArg])

Map callback over all matching documents. Returns an Array.

Arguments

callback Function

Function to call. It will be called with three arguments: the document, a 0-based index, and cursor itself.

thisArg Any

An object which will be the value of this inside callback.

doc_Meteor
2016-05-29 17:18:16
Comments
Leave a Comment

Please login to continue.