ScriptS
Reactiflux5y ago
5 replies
Script

Script – 23-22 Jan 26

What does the
OR statement
do in this block of code?
result = cars.reduce(function (r, a) {
      console.log("RR",r)
        r[a.make] = r[a.make] || [];
        r[a.make].push(a);
        return r;
    }, Object.create(null));
Was this page helpful?