From 813719326f6bd0b508634b364baa8ec472112e39 Mon Sep 17 00:00:00 2001 From: shawrkbait <43147032+shawrkbait@users.noreply.github.com> Date: Fri, 9 Nov 2018 11:01:49 -0600 Subject: [PATCH] Support old node versions --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;