Function cleanPreferences

  • Cleans incoming preferences to prevent unwanted behaviour. Makes sure internal types have weight 0, unless specifically requested in the preferences, and interprets empty preferences as accepting everything.

    Parameters

    Returns ValuePreferences

    A copy of the the preferences with the necessary updates.