Standard conventions for indicating a function argument is unused in JavaScript -
are there standard ways of marking function argument unused in javascript, analogous starting method argument underscore in ruby?
just have example work from, common jquery's $.each you're writing code doesn't need index, value, in iteration callback ($.each backward relative array#foreach):
$.each(objectorarraylikething, function(_, value) { } // use value here }); using _ closest i've seen standard way that, yes, i've seen lots of others — giving name reflective of purpose anyway (index), calling unused, etc.
Comments
Post a Comment