apps-script-utils 2.1.1 Help

nonVersionCompatible

function nonVersionCompatible(currentVersion: string, requiredVersion: string): boolean;

The negation of isVersionCompatible, for the guard clause that stops early when the environment is too old.

Parameters

Parameter

Type

Description

currentVersion

string

The version in hand.

requiredVersion

string

The minimum that is acceptable.

Returns

boolean — true when the current version is lower than required.

Examples

Leaving early

nonVersionCompatible("1.2.0", "1.3.0"); // => true

See also

Source

src/lang/string/nonVersionCompatible.ts

23 September 2026

This documentation was generated with AI (Claude) from the library's source code.