generic-common-prefix (npm): Find a common prefix between two Array-like containers (arrays, strings, buffers, arguments), measure its length, slice it, strip it. Also concat two containers.
Keywords: arguments|array|arrays|buffer|buffers|common prefix|common prefixes|concat|container|containers|length|measure|prefix|prefixes|slice|string|strings|strip