mk-pmb

mk-pmb/generic-common-prefix-js

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

JavaScript
0
0
No license

generic-common-prefix-js is a tiny utility library that works with any array‑like objects (arrays, strings, Buffers, arguments) to find their longest shared prefix. It provides functions to retrieve that prefix, measure its length, strip it from the inputs (optionally keeping it), and concatenate two containers. The package is aimed at JavaScript developers who need a lightweight, zero‑dependency way to manipulate common prefixes in diverse iterable data types.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

mk-pmb's profile
mk-pmb
5 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet