任意值转换为数字
值
toNum({}); /// 0toNum([2]); /// 2toNum('-123'); /// -123 Copy
toNum({}); /// 0toNum([2]); /// 2toNum('-123'); /// -123
任意值转换为数字