clearProperties

Returns a new Feature with all custom properties removed.

This is useful for resetting a feature to its base configuration without any custom properties. The returned feature will have an empty Feature.customProperties map.

Example:

val cleanFeature = feature.clearProperties()
assert(cleanFeature.customProperties.isEmpty())

Return

a new Feature with no custom properties