( maybeCollection: unknown )
| 17 | * ``` |
| 18 | */ |
| 19 | export function isCollection( |
| 20 | maybeCollection: unknown |
| 21 | ): maybeCollection is Collection<unknown, unknown> { |
| 22 | return Boolean( |
| 23 | maybeCollection && |
| 24 | // @ts-expect-error: maybeCollection is typed as `{}`, need to change in 6.0 to `maybeCollection && typeof maybeCollection === 'object' && IS_COLLECTION_SYMBOL in maybeCollection` |
| 25 | maybeCollection[IS_COLLECTION_SYMBOL] |
| 26 | ); |
| 27 | } |
no outgoing calls
no test coverage detected