Skip to content

pantoken / plugins/pantoken/deprecations/src / compareVersions

函式: compareVersions()

compareVersions(a, b): number

Beta(測試)

比較兩個以點分隔的版本陣列:若 a < b 則為負,若相等則為 0,若 a > b 則為正。

參數

a

number[]

b

number[]

回傳

number