function getCounts(langs = []) {
    return {
        langs: langs.length,
        modelLangs: langs.filter(({ models }) => models && !!models.length).length,
        models: langs.map(({ models }) => (models ? models.length : 0)).reduce((a, b) => a + b, 0),
    }
}
function getCounts(langs = []) {
    return {
        langs: langs.length,
        modelLangs: langs.filter(({ models }) => models && !!models.length).length,
        models: langs.map(({ models }) => (models ? models.length : 0)).reduce((a, b) => a + b, 0),
    }
}
function getCounts ( langs = [ ] ) { return { langs : langs . length , modelLangs : langs . filter ( ( { models } ) => models && ! ! models . length ) . length , models : langs . map ( ( { models } ) => ( models ? models . length : 0 ) ) . reduce ( ( a , b ) => a + b , 0 ) , } }
Compute the overall total counts of models and languages
Compute the overall total counts of models and languages