generic-common-prefix
v0.1.1
Published
Find a common prefix between two Array-like containers (arrays, strings, buffers, arguments), measure its length, slice it, strip it. Also concat two containers.
Downloads
11
Maintainers
Readme
generic-common-prefix
Find a common prefix between two Array-like containers (arrays, strings, buffers, arguments), measure its length, slice it, strip it. Also concat two containers.
API
gcp(a, b[, offsetA, offsetB])
gcp.measure(a, b[, offsetA, offsetB])
gcp.strip(a, b[, offsetA, offsetB[, keep]])
gcp.concat(a, b)
Usage
see test.js
License
ISC