You are viewing a single comment's thread. Return to all comments →
JS ONE-LINER :)
function gamingArray(arr) { let max = 0; return arr.filter(a=>a>max?max=a:null).length%2 ? "BOB" : "ANDY"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Gaming Array
You are viewing a single comment's thread. Return to all comments →
JS ONE-LINER :)