Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid reading outside of collection bounds #407
Consider the following collection:
const array = ['a', 'b', 'c'];
This patch changes the way some loops are written to avoid running into the slow case unnecessarily.
Similar patch for jQuery: jquery/jquery#3769
This is pretty big... can you put together a jsPerf or other benchmark (example, and yes I'm aware of the irony) showing the value?