- map<T, R, Context>(arr, cb, context?): R[]
Parameters
arr: readonly T[]
cb: ((this, val, index?, arr?) => R)
- (this, val, index?, arr?): R
Parameters
val: T
Optional
index: number
Optional
arr: readonly T[]
Returns R
Optional
context: Context
Returns R[]
Must be an array.
Array mapping.