We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Get common prefix of strings.
const commonPrefix = require('@extra-string/common-prefix'); // commonPrefix(<string-1>, <string-2>) commonPrefix('peacock', 'peahen'); // 'pea' commonPrefix('inception', 'interstellar'); // 'in' commonPrefix('mars', 'tars'); // ''