param { Array < string > } list param { Object } options property return { String } export function formatListAsProse ( list , options = { } ) { const { inclusive = true } = options ; const count = list . length ; const conjunction = inclusive ? 'and' : 'or' ; if ( count <= 2 ) { return list . join ( ` ${ conjunction } ` ) ; } return list . slice ( 0 , - 1 ) . concat ( `${ conjunction } ${ list [ count - 1 ] }` ) . join ( ', ' ) ; }