---
title: dynamic.isType() function
description: dynamic.isType() tests if a dynamic type holds a value of a specified type.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/dynamic/istype/
estimated_tokens: 192
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/experimental/dynamic/istype/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.186.0+

InfluxDB support

> [!Important]
> `dynamic.isType()` is experimental and [subject to change at any time](/flux/v0/stdlib/experimental/#experimental-packages-are-subject-to-change).

`dynamic.isType()` tests if a dynamic type holds a value of a specified type.

##### Function type signature

```js
(type: string, v: dynamic) => bool
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### v

(Required)
Value to test.

### type

(Required)
String describing the type to check against.

**Supported types**:

* string
* bytes
* int
* uint
* float
* bool
* time
* duration
* regexp
* array
* object
* function
* dictionary
* vector

[types](/flux/v0/tags/types/)[tests](/flux/v0/tags/tests/)
