diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -11,7 +11,7 @@ function genForeachArray(t, loopVar, arrayVar, loopStatement) {
   return t.forStatement(
     t.variableDeclaration("var", [ t.variableDeclarator(loopVar, t.numericLiteral(0)) ]),
     t.binaryExpression("<", loopVar, t.memberExpression(arrayVar, t.identifier("length"))),
-    t.unaryExpression("++", loopVar),
+    t.updateExpression("++", loopVar),
     loopStatement
   );
 }
fix #2 issue - TypeError crush in babel 7