Documentation / @blazetrails/activesupport / sole
Function: sole()
sole<
T>(collection):T
Defined in: packages/activesupport/lib/core-ext/enumerable.ts:217
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
collection | Iterable<T, any, any> | Each<T, unknown> |
Returns
T