# UnknownArray

`type` in `utils` · v0.6.1

<https://docs.seedcord.org/packages/utils/0.6.1/types/unknown-array>

Represents an array with `unknown` value.

Use case: You want a type that all arrays can be assigned to, but you don't care about the value.

## Examples

```ts
import type {UnknownArray} from 'type-fest';

type IsArray<T> = T extends UnknownArray ? true : false;

type A = IsArray<['foo']>;
//=> true

type B = IsArray<readonly number[]>;
//=> true

type C = IsArray<string>;
//=> false

 Type   Array
```

## Declaration

```ts
type UnknownArray = readonly unknown[];
```
