Function sanitizeProperty

  • Sanitizes the Property. It checks the that the property name and value are valid. It also checks/populates the correct type and pii of the property value.

    Parameters

    • name: string

      property name - The property name.

    • property: string | number | boolean | object | string[] | number[] | boolean[] | IEventProperty

      The property value or an IEventProperty containing value, type ,pii and customer content.

    • Optional stringifyObjects: boolean

    Returns IEventProperty | null

    IEventProperty containing valid name, value, pii and type or null if invalid.

Generated using TypeDoc