DEV Community

Discussion on: Top 20 JavaScript tips and tricks to increase your Speed and Efficiency

techygeeky profile image
Kapil Raghuwanshi🖥 Author

That's awesome @liquorburn . I have added the fastest one only.

Thread Thread
tomy profile image
Tomy Smith • Edited

It's actually the spread operator that's taking the time there. Though admittedly, there aren't many cases you'd have a hardcoded list of values to find the max of, it's worth pointing out.

dev-to-uploads.s3.amazonaws.com/up...