Sometimes it's useful to dynamically generate an array of matchers and pass it to allOf, anyOf etc. Unfortunately those functions only seem to support arguments list OOTB, so they need to be called using
__.allOf.apply(this, mymatchers);
instead, which is not too bad, but it'd be nice if there was a check for when arguments.length === 1 and the only argument is an array, and use the array as input to AllOf (and other aggregate matchers).