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);
ArcLite - Arc Ported to JavaScript - 0 views
JsonSQL - 0 views
js-spec - Google Code - 0 views
Ortho JavaScript Graphics - 0 views
AppJet Introduction - 0 views
HeatColor, a jQuery plugin - 0 views
The mysterious Opera object - 0 views
Dynamic CSS via JavaScript - 0 views
Datejs - A JavaScript Date Library - 0 views
Sequentially - 0 views
Javeline Development Center - News - 0 views
LZ77 JavaScript Compressor - 0 views
[Javascript] UUID generator - 0 views
My DebugBar | CompanionJS / HomePage - 0 views
xmlhttprequest - Google Code - 0 views
« First
‹ Previous
221 - 240 of 270
Next ›
Last »
Showing 20▼ items per page