<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@easyops-cn/brick-next-pipes](./brick-next-pipes.md) &gt; [find](./brick-next-pipes.find.md)

## find() function

从一个数据集合中找到第一个匹配的元素。

 Collection

**Signature:**

```typescript
export declare function find(collection: unknown[] | Record<string, unknown>, predict: string | number | Record<string, unknown> | [string | number, unknown], fromIndex?: number): unknown;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  collection | unknown\[\] \| Record&lt;string, unknown&gt; | 要搜索的集合。 |
|  predict | string \| number \| Record&lt;string, unknown&gt; \| \[string \| number, unknown\] |  |
|  fromIndex | number | 从哪个位置开始搜索。 |

**Returns:**

unknown

返回找到的元素，没有找到时返回 `undefined`<!-- -->。

## Remarks

透传调用 [\_.find](https://lodash.com/docs/#find)<!-- -->。

