map()
Parameters
Examples
-
Create an Array by mapping Array elements to subArrays that are constructed from the element value and the element value plus one, using an anonymous Function:
[ [ 1, 2 ], [ 2, 3 ], [ 3, 4 ] ]
-
Create an Array by passing a top-level object method as the mapping Function:
[ { name: "D", coll: Collection, ts: Time("2023-02-18T20:06:25.620Z"), indexes: {}, constraints: [] }, { name: "E", coll: Collection, ts: Time("2023-02-18T20:06:25.620Z"), indexes: {}, constraints: [] } ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!