query
On this page

versionOlder

lib.strings.versionOlder

Docs pulled from | This Revision | 10 minutes ago


Return true if string v1 denotes a version older than v2.

Inputs

v1
1. Function argument
v2
2. Function argument

Type

versionOlder :: String -> String -> Bool

Examples

lib.strings.versionOlder usage example

versionOlder "1.1" "1.2"
=> true
versionOlder "1.1" "1.1"
=> false

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

versionOlder = v1: v2: compareVersions v2 v1 == 1;