deconstruct-js

Home > deconstruct-js > list

list() function

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[]>;

Parameters

Parameter Type Description
deconstructor Deconstructor<T>  
times number  

Returns:

ComplexDeconstructor<T[]>