method AsyncObjectMapper.prototype.array
AsyncObjectMapper.prototype.array(
input: Iterable<TInput>,
context: OptionalArgIfUndefined<TContext>,
): Promise<TOutput[]>

Map multiple input objects from some iterable, and return an array of output objects.

Parameters

input: Iterable<TInput>
context: OptionalArgIfUndefined<TContext>

Return Type

Promise<TOutput[]>
AsyncObjectMapper.prototype.array(
input: Iterable<TInput> | null,
context: OptionalArgIfUndefined<TContext>,
): Promise<TOutput[] | null>

Map multiple input objects from some iterable, and return an array of output objects.

If the input is null, it will be returned as-is.

Parameters

input: Iterable<TInput> | null
context: OptionalArgIfUndefined<TContext>

Return Type

Promise<TOutput[] | null>
AsyncObjectMapper.prototype.array(
input: Iterable<TInput> | undefined,
context: OptionalArgIfUndefined<TContext>,
): Promise<TOutput[] | undefined>

Map multiple input objects from some iterable, and return an array of output objects.

If the input is undefined, it will be returned as-is.

Parameters

input: Iterable<TInput> | undefined
context: OptionalArgIfUndefined<TContext>

Return Type

Promise<TOutput[] | undefined>
AsyncObjectMapper.prototype.array(
input:
Iterable<TInput>
| null
| undefined
,
context: OptionalArgIfUndefined<TContext>,
): Promise<
TOutput[]
| null
| undefined
>

Map multiple input objects from some iterable, and return an array of output objects.

If the input is null or undefined, it will be returned as-is.

Parameters

input:
Iterable<TInput>
| null
| undefined
context: OptionalArgIfUndefined<TContext>

Return Type

Promise<
TOutput[]
| null
| undefined
>