Skip to main content
Version: Current

foundation-filters.nodeenvfilter

Home > @genesislcap/foundation-filters > nodeEnvFilter

nodeEnvFilter() function

NodeEnv client filter function.

Signature:

export declare function nodeEnvFilter(envs: string[]): boolean;

Parameters

ParameterTypeDescription
envsstring[]Environments to target.

Returns:

boolean

Remarks

This will return true when the current node env matches target parameters.