Libraries
    Preparing search index...

    Function mapValue

    • Apply a single mapper to a value.

      Parameters

      • mapper: string | ((v: any) => any)

        Either a transformation function (v: any) => any, or a string key referencing one of the MAPPERS built-ins (e.g. 'date_from_json').

      • value: any

        The raw value to transform.

      Returns any

      The transformed value.

      If mapper is a string that does not exist in MAPPERS.