Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.19 KB

js-utils.arraymapper.md

File metadata and controls

34 lines (22 loc) · 1.19 KB

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.