mirror of
https://github.com/Irev-Dev/Round-Anything.git
synced 2025-08-26 08:54:23 +02:00
Merge pull request #23 from damienmg/patch-1
Correctly instanciate recursion index
This commit is contained in:
@@ -90,7 +90,7 @@ let(
|
|||||||
)
|
)
|
||||||
[polyhedronPoints, polyhedronFaces, layerLength];
|
[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
|
// 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
|
// 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
|
// array= array to flattern by one level of nesting
|
||||||
|
Reference in New Issue
Block a user