Skip to content

Commit

Permalink
Avoid for..of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Dec 14, 2018
1 parent 968b3f7 commit 7955400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/PointArray.js
Original file line number Diff line number Diff line change
@@ -75,7 +75,8 @@ extend(PointArray, {
transform (m) {
const points = []

for (let point of this) {
for (let i = 0; i < this.length; i++) {
const point = this[i]
// Perform the matrix multiplication
points.push([
m.a * point[0] + m.c * point[1] + m.e,

0 comments on commit 7955400

Please sign in to comment.