# ee.Reducer.toCollection

Returns a reducer that collects its inputs into a FeatureCollection.

<br />

| Usage | Returns |
|---|---|
| `ee.Reducer.toCollection(propertyNames, *numOptional*)` | Reducer |

| Argument | Type | Details |
|---|---|---|
| `propertyNames` | List | The property names that will be defined on each output feature; determines the number of reducer inputs. |
| `numOptional` | Integer, default: 0 | The last numOptional inputs will be considered optional; the other inputs must be non-null or the input tuple will be dropped. |