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

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

Parameters

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

Return Type

TOutput[]
ObjectMapper.prototype.array(
input: Iterable<TInput> | null,
context: OptionalArgIfUndefined<TContext>,
): 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

TOutput[] | null
ObjectMapper.prototype.array(
input: Iterable<TInput> | undefined,
context: OptionalArgIfUndefined<TContext>,
): 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

TOutput[] | undefined
ObjectMapper.prototype.array(
input:
Iterable<TInput>
| null
| undefined
,
context: OptionalArgIfUndefined<TContext>,
):
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

TOutput[]
| null
| undefined