-
Couldn't load subscription status.
- Fork 1
common infix
Subhajit Sahu edited this page May 5, 2020
·
1 revision
Get common infix between strings.
const commonInfix = require('@extra-string/common-infix');
// commonInfix(<string-1>, <string-2>)
commonInfix('mangala', 'mangalyaan');
// 'mangal'
commonInfix('easter', 'tertiary');
// 'ter'
commonInfix('dismiss', 'mississipi');
// 'miss'