---
title: "lint/functions/require-strict-array-search"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/functions/require-strict-array-search" />

In the [`coding-style`](/docs/rules/sets/coding-style) set. Safe fix where types prove it, unsafe otherwise. Intent: suspicious.

## What it does

Makes array_search search for identical elements

## Configuration

```toml title="pun.toml"
[lint.rules]
"functions/require-strict-array-search" = "error"
```

To skip it in some files or lines, add an [override](/docs/configuration/pun-toml#lint) or an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`StrictArraySearch`](https://getrector.com/rule-detail/strict-array-search-rector) (rector)

[More lint/functions rules](/docs/rules/lint/functions) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
