3 ms·
If this: function nop() { if (Math.random() == 0.1234567890) { for (var i = 0; i < arguments.length; i++) { c
by smikhanov 13y ago
If this:
function nop()
{
if (Math.random() == 0.1234567890)
{
for (var i = 0; i < arguments.length; i++)
{
console.log(arguments[i]);
}
}
}
wouldn't have been written in JavaScript, my guess would be that this is an attempt to create an empty function (no-op) and prevent it from being optimized away by the compiler. Still unclear who may need to call it.