Skip to content

Documentation


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 ​

ParameterType
collectionIterable<T, any, any> | Each<T, unknown>

Returns ​

T