Skip to content

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'

extra-string

Clone this wiki locally