Skip to content

Commit

Permalink
fix(docs): Updated localFlags feature list api to match with the curr…
Browse files Browse the repository at this point in the history
…ent Implementation
  • Loading branch information
Jose Joya committed Oct 2, 2024
1 parent ed6da3d commit 48cba0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const localFlags = setupLocalFlags({
// in your application or in the browser console
localFlags.enableFeature('calendarView'); // use this to enable a feature.
localFlags.disableFeature('calendarView'); // use this to disable a feature.
localFlags.featureList(); // use this to list all features.
console.log(localFlags.featureList.toString()); // use this to get a list of all features in String format.
console.log(localFlags.featureList.toJSON()); // use this to get a list of all features in JSON format.
localFlags.isFeatureEnabled('calendarView'); // use this to check if a feature is enabled.
```

Expand Down

0 comments on commit 48cba0f

Please sign in to comment.