The Basic Usage section of the README shows that the customGremlin function accepts 2 arguments, logger and randomizer, but in v2.2.0 the function receives only one argument which is an object that contains logger, randomizer, and window properties. Perhaps the Basic Usage code was meant to be this:
function customGremlin({logger, randomizer}) {
...
The
Basic Usage
section of the README shows that thecustomGremlin
function accepts 2 arguments,logger
andrandomizer
, but in v2.2.0 the function receives only one argument which is an object that containslogger
,randomizer
, andwindow
properties. Perhaps theBasic Usage
code was meant to be this: