ReadonlyArray.map<U>(callbackfn: (value: T,index: number,array: readonly T[],) => U,thisArg?: any,): U[]
Calls a defined callback function on each element of an array, and returns an array that contains the results.
callbackfn: (value: T,index: number,array: readonly T[],) => U
A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
U[]