/utils/versionCheck

Methods

(inner) versionCheck(value) → {boolean}

Compare the mapp.version string property against as string value provided as argument.

The versionCheck returns true if the provided value argument equals or exceeds the mapp.version.

versionCheck('4.12') //returns true with mapp.version = '4.12.0' or smaller.
Parameters:
NameTypeDescription
valueString

The value to compare with the current version.

Returns:

Return true if the current version is more than or equal to the given value.

Type: 
boolean