Skip to content

times

乘法(*)。

基本用法

传入多个数,返回计算结果。

ts
import { times } from '@renzp/number-correct'

times(2, 2); // 4
times(2, 2, 2); // 8

参数

参数说明类型默认值是否必填
...numbers要相乘的数Array<Value>-
ts
type Value = string | number

返回

参数说明类型
v计算结果string