To be fair, I'd trade that for
a += record.bool ? 1 : 0;
if I can have less awkward type coercions in return in a heartbeat. a += record.bool ? 1 : 0;
if I can have less awkward type coercions in return in a heartbeat. a += !!record.bool;
There now. Happier?