/**
* Ensures that the input(s) are valid JSVerify generators. Applies `jsc.constant()` to any non-generators given.
* @param {Any|Any[]} input either a single value to potentially convert, or an array of values to convert.
* @return {Any|Any[]} the input(s) given, with all non-generators converted via `jsc.constant()`
*/
static ensureGenerator(input) {
if(!Array.isArray(input)) {
return this.isGenerator(input) ? input : jsc.constant(input);
}
return input.map(val => this.isGenerator(val) ? val : jsc.constant(val));
}