Home > @apextoaster/js-utils > ArrayMapper
Map an array of items into a map of arrays using the specified keys, able to skip
initial items and gather remaining items into a rest
key.
Signature:
export declare class ArrayMapper
Constructor | Modifiers | Description |
---|---|---|
(constructor)(options) | Constructs a new instance of the ArrayMapper class |
Property | Modifiers | Type | Description |
---|---|---|---|
rest | string |
||
skip | number |
||
take | Array<string> |
Method | Modifiers | Description |
---|---|---|
map(input) | Transform the input list into a map, extracting elements using the mapper's options. |