Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const normalizeFlag = (flagName, flagValue) => [
camelCase(flagName),
// Multivariate flags contain a string or `null` - `false` seems
// more natural.
flagValue === null ? false : flagValue,
];