crystal-ball/babel-base

View on GitHub
src/test-env.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { Env } from './types'

/** Tests the current env against target envs for toggling features by environment */
export const testEnv = (currentEnv: Env, targetEnvs: Env[]): boolean =>
  targetEnvs.includes(currentEnv)