// sums 0 for not numeric values const sum = (...args) => Array.from(args).reduce((_, c) => _ + (Number(c) || 0), 0);
391500cookie-checkJavascript sum function
// sums 0 for not numeric values const sum = (...args) => Array.from(args).reduce((_, c) => _ + (Number(c) || 0), 0);