Skip to content

pantoken / plugins/pantoken/deprecations/src / compareVersions

Function: compareVersions()

compareVersions(a, b): number

Beta

Compare two dotted version arrays: negative if a < b, 0 if equal, positive if a > b.

Parameters

a

number[]

b

number[]

Returns

number