UNPKG

testpub-ssr

Version:

Test Pub SSR

25 lines (20 loc) 500 B
const isEmpty = (array: any[]): boolean => array.length === 0; const not = (predicate: (arg: Array<any>) => boolean) => (arg: Array<any>): boolean => !predicate(arg); const evaluateStylesBrand = (): string => { const stylesBrand: string | undefined = process.env.TARGET; switch (stylesBrand) { case 'one': { return 'facts'; } case 'two': { return 'facts-b'; } default: { return 'facts'; } } }; export { isEmpty, not, evaluateStylesBrand };