MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / get

Function get

frontend/common/utils/format.ts:14–20  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

12
13 enumeration: {
14 get(value: string | null | undefined): string {
15 // MY_CONSTANT > My constant
16 if (!value) {
17 return ''
18 }
19 return Format.camelCase(value.replace(/_/g, ' '))
20 },
21 set(value: string): string {
22 // My Constant > MY_CONSTANT
23 return value.replace(/ /g, '_').toUpperCase()

Callers 1

App.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected