---
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: 452
product: Flux
version: v0
---

# dynamic.isType() function

-   Flux 0.186.0+
-   View InfluxDB support

`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/)
