generic-common-prefix

0.1.1 • Public • Published

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

/generic-common-prefix/

    Package Sidebar

    Install

    npm i generic-common-prefix

    Weekly Downloads

    3

    Version

    0.1.1

    License

    ISC

    Last publish

    Collaborators

    • mk-pmb