MCPcopy Create free account
hub / github.com/vercel/examples / decide

Function decide

solutions/flags-sdk/flags.ts:5–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3export const exampleFlag = flag({
4 key: 'example-flag',
5 decide() {
6 // this flag will be on for 50% of visitors
7 return Math.random() > 0.5
8 },
9})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected