What about the case where most products don’t have offerings, or the offerings don’t have merchants, vel cetera? If this were a frequent case, and this were inner-loop code, I might introduce a global empty object in order to reduce the object instantiation overhead (which happens right away) and the GC load (which shows up over time). E.g. define var $N={}, and use:
var product = ...,
merchantName = (((product||$N).offering||$N).merchant||$N).name;
if (merchantName)
displayMerchantName(merchantName);
JsonSQL - 0 views
Dynamic CSS via JavaScript - 0 views
Javeline Development Center - News - 0 views
LZ77 JavaScript Compressor - 0 views
[Javascript] UUID generator - 0 views
My DebugBar | CompanionJS / HomePage - 0 views
« First
‹ Previous
221 - 240 of 270
Next ›
Last »
Showing 20▼ items per page