From 88daff6b70c42cc2eab6d33cc12fd5b3f7c3cee3 Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Wed, 30 Oct 2024 00:33:43 +0800 Subject: [PATCH] docs: improve --- docs/array/find.md | 2 +- docs/zh/array/find.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/array/find.md b/docs/array/find.md index 89db9af..6d45f78 100644 --- a/docs/array/find.md +++ b/docs/array/find.md @@ -18,7 +18,7 @@ find(['a', 'b', 'a'], (item) => item === 'a', 'end') | Arg | Type | Defaults | | ------ | ------------------------------------------------- | --------- | | `arr` | `Array` | | -| `fn` | `(item: any, index: number, array: Array) => any` | | +| `fn` | `(item: any, index: number, array: Array) => boolean` | | | `from` | `'start' \| 'end'` | `'start'` | ### Return diff --git a/docs/zh/array/find.md b/docs/zh/array/find.md index 1051150..54af298 100644 --- a/docs/zh/array/find.md +++ b/docs/zh/array/find.md @@ -18,7 +18,7 @@ find(['a', 'b', 'a'], (item) => item === 'a', 'end') | 参数 | 类型 | 默认值 | | ------ | ------------------------------------------------- | --------- | | `arr` | `Array` | | -| `fn` | `(item: any, index: number, array: Array) => any` | | +| `fn` | `(item: any, index: number, array: Array) => boolean` | | | `from` | `'start' \| 'end'` | `'start'` | ### 返回值