Check if a feature is enabled for a user.
const featureId = 'feature-1';tesfy.isFeatureEnabled(featureId); // true
A userId
and attributes
could be optionally supplied.
const userId = '676380e0-7793-44d6-9189-eb5868e17a86';const attributes = { countryCode: 'us' };const featureId = 'feature-1';tesfy.isFeatureEnabled(featureId, userId, attributes); // true