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

Usage

import { AsyncObjectMapper } from ".";