[Javascript] Object Not Defined

Claude Schnéegans schneegans at internetique.com
Fri Nov 11 08:20:05 CST 2011


Hi. The shortest I can see:

function(a){return (a && a.data && a.data.items ? a.data.items : null)}

But you still have to check for the existence of a.data and a.data.items if it's possible they are null.


More information about the Javascript mailing list