UNPKG
a-max
Version:
latest (1.0.0)
1.0.0
Returns maximum value in array
github.com/vikramcse/a-max
vikramcse/a-max
a-max
/
index.js
7 lines
(5 loc)
•
145 B
JavaScript
View Raw
1
2
3
4
5
6
7
'use strict'
;
module
.
exports
=
function
(
) {
var
arr =
Array
.
prototype
.
slice
.
call
(
arguments
[
0
]);
return
Math
.
max
.
apply
(
null
, arr); };