Constant generator

A generator that keeps generating the given value.

const { constant } = require("chance-generators");
expect(constant(6).take(3), "to equal", [6, 6, 6]);
 
expect(constant("s").take(3), "to equal", ["s", "s", "s"]);