Invokes the method at path of each element in collection, returning
an array of the results of each invoked method. Any additional arguments
are provided to each invoked method. If path is a function, it's invoked
for, and this bound to, each element in collection.
Parameters
collection: Collection
The collection to iterate over.
path: ArrayPath
The path of the method to invoke or
the function invoked per iteration.
Invokes the method at
path
of each element incollection
, returning an array of the results of each invoked method. Any additional arguments are provided to each invoked method. Ifpath
is a function, it's invoked for, andthis
bound to, each element incollection
.