Wednesday, 15 July 2015

function - Javascript variable redundance -



function - Javascript variable redundance -

i have simple javascript function this:

function wrapvar (passvar) { var alternative = { varvalue: passvar, hide: true, params: { ..otherparams.. } }; homecoming option; }

eclipse , aptana validation says local variable 'option' redundant. meaning of "redundancy" in case not clear me, should avoid it?

probably, means can utilize equivalent

class="lang-js prettyprint-override">function wrapvar (passvar) { homecoming { varvalue: passvar, hide: true, params: { ..otherparams.. } }; }

javascript function variables redundancy

No comments:

Post a Comment