Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/object/simpleMapper

Index

Functions

Functions

Const simpleMapper

  • simpleMapper(fieldToRemove: string, fieldToAdd: string): (Anonymous function)
  • Replaces fieldToRemove with fieldToAdd when used with our viewTranslator. Performs no processing to tidy the value stored at the field.

    Parameters

    • fieldToRemove: string

      Field to remove.

    • fieldToAdd: string

      New name to store data that was stored at fieldToRemove.

    Returns (Anonymous function)

    A function to set the value of a field for some JSON value

Generated using TypeDoc