Skip to content

docs(compat/every, compat/find, compat/findLastIndex): rename predicate param to doesMatch#1854

Open
Antoliny0919 wants to merge 1 commit into
toss:mainfrom
Antoliny0919:doesmatch-consistency
Open

docs(compat/every, compat/find, compat/findLastIndex): rename predicate param to doesMatch#1854
Antoliny0919 wants to merge 1 commit into
toss:mainfrom
Antoliny0919:doesmatch-consistency

Conversation

@Antoliny0919

Copy link
Copy Markdown
Contributor

Summary

every

export function every<T>(
source: ArrayLike<T> | Record<any, any> | null | undefined,
doesMatch?: ((item: T, index: number, arr: any) => unknown) | Partial<T> | [keyof T, unknown] | PropertyKey,
guard?: unknown
): boolean {

find

export function find<T>(
source: ArrayLike<T> | Record<any, any> | null | undefined,
_doesMatch:
| ((item: T, index: number, arr: any) => unknown)
| Partial<T>
| [keyof T, unknown]
| PropertyKey = identity,

findLastIndex

export function findLastIndex<T>(
arr: ArrayLike<T> | null | undefined,
doesMatch: ((item: T, index: number, arr: any) => unknown) | Partial<T> | [keyof T, unknown] | PropertyKey = identity,
fromIndex: number = arr ? arr.length - 1 : 0
): number {

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
es-toolkit Ready Ready Preview, Comment Jul 9, 2026 1:04am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant