Property 'length' does not exist on type 'Vector3[]'
So I'm making a module script in vscode, the problem originates in my
renderBelt()
function11 Replies
for arrays, the way to get the size is with arr.size(), not length
little different from js
I see, thank you.
Could this also be done with
newPoints.forEach((point: ConveyorPole) => {});
?wym
newPoints.forEach((point: ConveyorPole) => {})
yeah you can do that if you dont wanna use loops, you can also do for(const point of newPoints){}, the only problem is that you cant get the index of it
can't you just use the 2nd optional param of forEach like
(point, _index)
?yes, I meant the "for" way
Right
Alright, thanks for the help.
no problem
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View