ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Function simpleMapper

    • 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 (result: Record<string, unknown>, value: unknown) => Record<string, unknown>

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