Skip to content

Added a util to check toggle status.

Latest
Compare
Choose a tag to compare
@claeusdev claeusdev released this 24 Mar 00:47
· 3 commits to main since this release

What's changed?

You can now import isON that returns true when the toggle status is "on" or false otherwise.

Usage

import { LaunchLever, isOn } from "launch-lever"

const toggles = new LaunchLever(your-toggle-list).flags
const pfx-123 = isOn(toggles.pfx-123)