/common-path-suffix

Reverse of common-path-prefix

Primary LanguageJavaScript

common-path-suffix

Reverse of common-path-prefix

const paths = ['templates/main.handlebars', 'templates/_partial.handlebars']

commonPathSuffix(paths, '/') // returns '.handlebars'