function removecharacter(titled, value) {
    doujinshiinfo = doujinshi.find( ({ folder }) => folder === titled );
    var doujinshiinfoindex = doujinshi.indexOf(doujinshiinfo)
    var doujinshiinfotestcharacter = doujinshi[doujinshiinfoindex].character.indexOf(value)
    if (doujinshiinfotestcharacter > -1) {
        doujinshi[doujinshiinfoindex].character.splice(doujinshiinfotestcharacter, 1)
        var jsonoutput = JSON.stringify(doujinshi, null, '\t')
        fs.writeFile('data/doujinshi.json', jsonoutput, function (err) {if (err) throw err;});
    }
}
// function used to remove a character
function used to remove a character
function used to remove a character
function removecharacter(titled, value) {
    doujinshiinfo = doujinshi.find( ({ folder }) => folder === titled );
    var doujinshiinfoindex = doujinshi.indexOf(doujinshiinfo)
    var doujinshiinfotestcharacter = doujinshi[doujinshiinfoindex].character.indexOf(value)
    if (doujinshiinfotestcharacter > -1) {
        doujinshi[doujinshiinfoindex].character.splice(doujinshiinfotestcharacter, 1)
        var jsonoutput = JSON.stringify(doujinshi, null, '\t')
        fs.writeFile('data/doujinshi.json', jsonoutput, function (err) {if (err) throw err;});
    }
}
function removecharacter ( titled , value ) { doujinshiinfo = doujinshi . find ( ( { folder } ) => folder === titled ) ; var doujinshiinfoindex = doujinshi . indexOf ( doujinshiinfo ) var doujinshiinfotestcharacter = doujinshi [ doujinshiinfoindex ] . character . indexOf ( value ) if ( doujinshiinfotestcharacter > - 1 ) { doujinshi [ doujinshiinfoindex ] . character . splice ( doujinshiinfotestcharacter , 1 ) var jsonoutput = JSON . stringify ( doujinshi , null , '\t' ) fs . writeFile ( 'data/doujinshi.json' , jsonoutput , function ( err ) { if ( err ) throw err ; } ) ; } }
function used to remove a character
function used to remove a character