0.1.3 • Published 8 years ago

string-commonprefix v0.1.3

Weekly downloads
34
License
MIT
Repository
github
Last release
8 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

8 years ago

0.1.2

8 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago