---
title: strings.equalFold() function
description: strings.equalFold() reports whether two UTF-8 strings are equal under Unicode case-folding.
url: https://docs.influxdata.com/flux/v0/stdlib/strings/equalfold/
estimated_tokens: 1001
product: Flux
version: v0
---

# strings.equalFold() function

-   Flux 0.18.0+
-   View InfluxDB support

`strings.equalFold()` reports whether two UTF-8 strings are equal under Unicode case-folding.

##### Function type signature

```js
(t: string, v: string) => bool
```

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

## Parameters

### v

(Required) String value to compare.

### t

(Required) String value to compare against.

## Examples

### Ignore case when comparing two strings

```js
import "strings"

data
    |> map(fn: (r) => ({r with same: strings.equalFold(v: r.string1, t: r.string2)}))
```

[](#view-example-input-and-output)

View example input and output

#### Input data

| time | string1 | string2 |
| --- | --- | --- |
| 2022-01-01T00:00:00Z | RJqcVGNlcJ | rjQCvGNLCj |
| 2022-01-01T00:01:00Z | hBumdSljCQ | unfbcNAXUA |
| 2022-01-01T00:02:00Z | ITcHyLZuqu | KKtCcRHsKj |
| 2022-01-01T00:03:00Z | HyXdjvrjgp | hyxDJvrJGP |
| 2022-01-01T00:04:00Z | SVepvUBAVx | GuKKjuGsyI |

#### Output data

| same | string1 | string2 | time |
| --- | --- | --- | --- |
| true | RJqcVGNlcJ | rjQCvGNLCj | 2022-01-01T00:00:00Z |
| false | hBumdSljCQ | unfbcNAXUA | 2022-01-01T00:01:00Z |
| false | ITcHyLZuqu | KKtCcRHsKj | 2022-01-01T00:02:00Z |
| true | HyXdjvrjgp | hyxDJvrJGP | 2022-01-01T00:03:00Z |
| false | SVepvUBAVx | GuKKjuGsyI | 2022-01-01T00:04:00Z |
