0.1.3 • Published 6 years ago
string-commonsuffix v0.1.3
string-commonsuffix
NOTE: string-commonsuffix was renamed to @extra-string/common-suffix.
Get common suffix of strings.
const commonSuffix = require('string-commonsuffix');
// commonSuffix(<string-1>, <string-2>)
commonSuffix('peacock', 'hancock');
// 'cock'
commonSuffix('mars', 'tars');
// 'ars'
commonSuffix('chief', 'master');
// ''