Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect array slicing parameters #254

Closed
wants to merge 1 commit into from

Conversation

icecream17
Copy link

Ugh I keep getting this error. I put in so many layers!!!!
image

I looked at the code to try to do it myself but I ended up finding a bug instead.

Code changed:
Array.slice(0, -1) instead of Array.slice(Start at length - 1)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

Ugh I keep getting this error whyyy. I put in 100 LAYERS! 

Well because of a bug.
Array.slice(0, -1) instead of Array.slice(Start at length - 1)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice
@raimannma
Copy link
Member

See #258

@raimannma raimannma closed this Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants