You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2019. It is now read-only.
Hi,
Thanks for the awesome open source contribution tutorial. This is my first time to contribute the code.
I would like to add max function to get the maximum value of an array, and the implementation is showed below.
function __getMax(max, value) {
if(value > max){
max=num;
}
return max;
}
function max(array){
array.reduce(__getMax);
}