Checks if the feature is enabled for the user by querying the storage.
The settings model containing configuration.
The key of the feature to check.
A Promise resolving to a boolean indicating if the feature is enabled for the user.
Checks if the user's location matches the expected location criteria.
Map of expected location values.
A Promise resolving to a boolean indicating if the location matches.
Checks if the actual values match the expected values specified in the map.
A map of expected values for different keys.
A map of actual values to compare against.
A Promise resolving to a boolean indicating if all actual values match the expected values.
Compares expected location values with user's location to determine a match.
A map of expected location values.
The user's actual location.
A boolean indicating if the user's location matches the expected values.
Interface for segmentation logic. Provides a method to validate segmentation based on given parameters.