1
0
Fork 0
js-utils/docs/api/js-utils.arraymapper.md

1.2 KiB

Home > @apextoaster/js-utils > ArrayMapper

ArrayMapper class

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 

Constructors

Constructor Modifiers Description
(constructor)(options) Constructs a new instance of the ArrayMapper class

Properties

Property Modifiers Type Description
rest string
skip number
take Array<string>

Methods

Method Modifiers Description
map(input) Transform the input list into a map, extracting elements using the mapper's options.