---
url: /api/core/types/utils/function-is-collection.md
description: api documentation of isCollection from @tsed/core
---

## Usage

```typescript
import { isCollection } from "@tsed/core";
```

> See [/packages/core/src/utils/isCollection.ts](https://github.com/tsedio/tsed/blob/v8.37.1/packages/core/src/utils/isCollection.ts#L0-L0).

## Overview

```ts
function isCollection(target: any): boolean;
```

## Description

Determines whether a value is a collection type (Array, Map, Set, WeakMap, WeakSet).

Checks both the constructor itself and instances of these collection types.
