Skip to content

mathCompare

比较两个数值大小。

示例

ts
import { mathCompare } from '@base-web-kits/base-tools-ts';
mathCompare('2', '10'); // => -1
mathCompare(3, 3); // => 0
mathCompare('10', 2); // => 1

版本

  • 1.0.0 新增