isEnvironment
Method
interface IHostEnvironment { // ... omitted for brevity isEnvironment(environmentName: string): boolean;}Signature
method
isEnvironment Checks if the environment matches the specified name.
isEnvironment(environmentName: string): booleanParameters
environmentName stringThe environment name to compare against.Returns
booleanApplies to
This method applies to the following types: