Retrieve the common prefix across multiple strings.
str = common(strings)
var common = require('common-prefix') common([ 'hello world' , 'hello again' , 'hello once again']) === 'hello '
MIT. See LICENSE.md for details.
Manage developer teams with varying permissions and multiple projects. Learn more about Private Packages and Organizations…
how? learn more