Needless Patchouli Manufacture

    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

    Install

    npm i generic-common-prefix

    DownloadsWeekly Downloads

    2

    Version

    0.1.1

    License

    ISC

    Last publish

    Collaborators

    • mk-pmb