@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
8 lines • 420 B
TypeScript
/**
* Checks if an environment variable matches an expected value or any value in an array.
* @param {string} key - The environment variable key.
* @param {string|string[]} expected - The expected value(s).
* @returns {boolean} True if the environment variable matches, false otherwise.
*/
export default function equalsEnv(key: string, expected: string | string[]): boolean;
//# sourceMappingURL=equalsEnv.d.ts.map