0.1.3 • Published 6 years ago

string-commonprefix v0.1.3

Weekly downloads
34
License
MIT
Repository
github
Last release
6 years ago

string-commonprefix

NOTE: string-commonprefix was renamed to @extra-string/common-prefix. NPM

Get common prefix of strings.

const commonPrefix = require('string-commonprefix');
// commonPrefix(<string-1>, <string-2>)

commonPrefix('peacock', 'peahen');
// 'pea'
commonPrefix('inception', 'interstellar');
// 'in'
commonPrefix('mars', 'tars');
// ''
0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago