Why there are those Array tests? #2859
Unanswered
formigarafa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
rI was reading the test files and I've found these 3 tests:
They made me confused because they all iterate on an array of coordinates as if working with line geometries but they are just using the standard javascript array functions.
I can only suppose that no one was really testing the standard javascript functions and I was wondering if this was something that was supposed to be implemented in
lineEach
orlineReduce
and was left behind.Something like if the method
lineEach
was called with an array of coords it would assume these would be the line coords.I am saying that, because as is, only one of the 3 tests use Turf functions at all.
Could anyone, explain why those tests exist? Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions