Home > deconstruct-js > list
Repeats a deconstructor a number of times, or as much as possible if not given
Signature:
declare function list<T>(deconstructor: Deconstructor<T>, times?: number): ComplexDeconstructor<T[]>;
Parameter | Type | Description |
---|---|---|
deconstructor | Deconstructor<T> |
|
times | number |
Returns:
ComplexDeconstructor<T[]>