Hm, whatToShow.reduce(toBitwiseOr, 0) seems a work-around jslint being nasty with us using |-operator? Or is there another reason?
Not sure I prefer runtime-costs due to slightly more complex code. Rather would prefer just jslint-instructions where needed.