UNPKG
mm_maths
Version:
latest (1.2.0)
1.2.0
1.1.9
1.1.8
1.1.7
1.1.5
1.1.3
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
这是一个可以将数学公式推导变形,并转成js和计算的模块。
gitee.com/qiuwenwu91/mm_maths
mm_maths
/
math
/
array
/
max
/
test.js
8 lines
(7 loc)
•
196 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
max =
require
(
'./index'
);
var
arr = [
15
,
35
,
68
,
66
];
var
arr_2 = [
38
,
35
,
68
];
var
arr_3 = [
25
,
35
,
22
,
33
];
console
.
log
(
max
(arr));
console
.
log
(
max
(arr_2));
console
.
log
(
max
(arr_3));