Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

generic-common-prefix

mk-pmb17ISC0.1.1

Find a common prefix between two Array-like containers (arrays, strings, buffers, arguments), measure its length, slice it, strip it. Also concat two containers.

arguments, array, arrays, buffer, buffers, common prefix, common prefixes, concat, container, containers, length, measure, prefix, prefixes, slice, string, strings, strip

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