Skip to content

Commit 721c4a9

Browse files
Support older node versions
1 parent 799b5f8 commit 721c4a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ function Sentencer() {
5151
// THE GOODS
5252
// ---------------------------------------------
5353

54-
Sentencer.prototype.make = function(template, maxIterations = 1) {
54+
Sentencer.prototype.make = function(template, maxIterations) {
55+
maxIterations = maxIterations || 1;
5556
var self = this;
5657

5758
var sentence = template;

0 commit comments

Comments
 (0)