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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -