flatMap()
Description
The flatMap()
method creates an Array by invoking function on
each element of the calling array and flattening the
resulting array one level. The Array elements are passed as a
parameter to function, sequentially.
The calling array isn’t changed.
Parameters
Return value
Type | Description |
---|---|
Array with the results of calling function on each element of the calling array. The resulting array is flattened by one level. |
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!