Identifies the base type of array elements
Identifies the flattened output element type
The array or array-like object to map and flatten.
A function that is called for each existing element and may return either a single value or an array of values to flatten into the result.
OptionalthisArg: any
A value to use as this when executing callbackFn. Defaults to undefined if not provided.
A new array containing the mapped and flattened values.
Polyfill implementation of Array.flatMap() for environments that don't support it.