if ( $.inArray( 'printouts', item ) ) { $.each ( item.printouts, function( property, values ) { console.log("---------------------"); console.log(property); console.log(values); $.map ( values, function( value ) { var D = {}; // Time type properties if ( value instanceof smw.dataItem.time ) { D.date = value.getDate().toISOString(); // Page type properties } else if ( value instanceof smw.dataItem.wikiPage ) { D.title = value.getFullText(); } } )