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

ExactReturn<TOutput[]> | null | undefined

Usage

import { ObjectMapper } from ".";