- find<T, Context>(arr, cb, context?): T
Parameters
arr: readonly T[]
cb: ((this, value, index?, arr?) => boolean)
- (this, value, index?, arr?): boolean
Parameters
value: T
Optional
index: number
Optional
arr: readonly T[]
Returns boolean
Optional
context: Context
Returns T
数组项查找