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 #258

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

raimannma
Copy link
Member

@raimannma raimannma commented Dec 16, 2020

REBASED VERSION from steven nguyen

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 Author

@christianechevarria Is it possible to add a bit tolerance to coveralls check?

@icecream17
Copy link

I just realized it might be better to do Array.pop() instead of Array.slice(0, -1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕷️ bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants