re: Daily Challenge #76 - Bingo! (or not...) VIEW POST

FULL DISCUSSION
 

JS:

const bingo = (nums) => {
    const win = [2, 9, 14, 7, 15];
    return  nums.reduce((acc, num) => {
        if(win.includes(num)) acc.push(num);
        return acc;
    }, []).length > win.length ? 'WIN' : 'LOSE';
}
code of conduct - report abuse