How to use void to make explicit that you are not intentionally using a variable?
$.each(data, function (i, item, any, other, unused, vars) { void(i, any, other, unused, vars); items += "<option value='" + item.Value + "'>" + item.Text + "</option>"; });
It is also useful in abstract functions, which are expected to be overwritten, but where you want to show the signature or in mocks, where you ignore the arguments, but want to match the forged function signature.
xn. Sep 13 '13 at 23:59 on 2013-09-13 23:59
source share