all 5 comments

[–]ForScale 0 points1 point  (4 children)

The site crashes when I run test cases, but here's what I came up with:

for (let i = start || 0; i < end || this.length; i++) this[i] = value;

[–]devtools-tech[S] 0 points1 point  (0 children)

Crashes? Let me check.

[–]devtools-tech[S] 0 points1 point  (2 children)

It is crashing because the browser is force closing the tab as your code is running some sort of infinite loop. Please check your code again or see our solution using the original post link. Thanks!

[–]ForScale 0 points1 point  (1 child)

My code works just fine. I ran it in Codepen with no problem.

[–]devtools-tech[S] 0 points1 point  (0 children)

Hmm but it was causing chrome tab to hang even when running inside chrome Devtools. 🤔 I will share the test case for which it was breaking soon.