index.js
function prop_to_csv(prop) {

    var val = String(prop);
    if (val === 'undefined') val = '';

    return '"' + val.toString().replace(/"/g, '""') + '"';
}
function prop_to_csv(prop) {

    var val = String(prop);
    if (val === 'undefined') val = '';

    return '"' + val.toString().replace(/"/g, '""') + '"';
}
function prop_to_csv ( prop ) { var val = String ( prop ) ; if ( val === 'undefined' ) val = '' ; return '"' + val . toString ( ) . replace ( / " / g , '""' ) + '"' ; }
return empty string if not truthy, escape quotes
return empty string if not truthy escape quotes