1.1.3 • Published 5 years ago
@extra-string/common-suffix v1.1.3
Get common suffix of strings.
const commonSuffix = require('@extra-string/common-suffix');
// commonSuffix(<string-1>, <string-2>)
commonSuffix('peacock', 'hancock');
// 'cock'
commonSuffix('mars', 'tars');
// 'ars'
commonSuffix('chief', 'master');
// ''