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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i generic-common-prefix

      Weekly Downloads

      1

      Version

      0.1.1

      License

      ISC

      Last publish

      Collaborators

      • mk-pmb