diff --git a/index.js b/index.js index 24711b3..24ab252 100644 --- a/index.js +++ b/index.js @@ -51,7 +51,8 @@ function Sentencer() { // THE GOODS // --------------------------------------------- -Sentencer.prototype.make = function(template, maxIterations = 1) { +Sentencer.prototype.make = function(template, maxIterations) { + maxIterations = maxIterations || 1; var self = this; var sentence = template;