1
0
mirror of https://github.com/Irev-Dev/Round-Anything.git synced 2025-08-24 16:32:53 +02:00

Merge pull request #23 from damienmg/patch-1

Correctly instanciate recursion index
This commit is contained in:
Kurt Hutten
2021-05-03 11:39:05 +10:00
committed by GitHub

View File

@@ -90,7 +90,7 @@ let(
)
[polyhedronPoints, polyhedronFaces, layerLength];
function flatternRecursion(array, init=[], currentIndex)=
function flatternRecursion(array, init=[], currentIndex=0)=
// this is a private function, init and currentIndex are for the function's use
// only for when it's calling itself, which is why there is a simplified version flatternArray that just calls this one
// array= array to flattern by one level of nesting