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

Function sorted

frontend/scripts/generate-tokens.mjs:32–35  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

30const kebabToCamel = (s) => s.replace(/-([a-z0-9])/g, (_, c) => c.toUpperCase())
31
32const sorted = (obj) =>
33 Object.entries(obj).sort(([a], [b]) =>
34 a.localeCompare(b, undefined, { numeric: true }),
35 )
36
37const esc = (s) => s.replace(/\\/g, '\\\\').replace(/'/g, "\\'")
38const lightVal = (e) => e.light ?? e.value

Callers 15

buildScssLinesFunction · 0.85
buildTsDescribedLinesFunction · 0.85
buildFlatConstantsFunction · 0.85
generateUtilitiesFunction · 0.85
get_transient_identifierFunction · 0.85
_get_usage_trends_influxFunction · 0.85
_build_payloadMethod · 0.85
update_prioritiesMethod · 0.85
_timeseries_pointsFunction · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…