Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/object/mapper

Index

Functions

Functions

Const mapper

  • mapper<T>(input: T, map: ObjectMap): Record<string, unknown>
  • Map any object to another, using a map

    Type parameters

    • T: object

    Parameters

    • input: T

      Data that is used as the input to each function in map

    • map: ObjectMap

      Contains strings or functions that are called on each key/value pair of input

    Returns Record<string, unknown>

    The mapped string

Generated using TypeDoc