DEV Community

Discussion on: 8 Ridiculously Simple Javascript Tricks Not Taught on Tutorials

Collapse
 
veebuv profile image
Vaibhav Namburi

Yeah but this is a O(n) complexity, array.length = whatever is O(1) :)

Unless we're talking about two different things ofc 😂

Some comments have been hidden by the post's author - find out more