Extra Credit

common-path-prefix

Computes the longest prefix string that is common to each path, excluding the base component

$npm install common-path-prefix

Official docs outline

Extra Credit builds an outline of common-path-prefix's docs the first time your work uses it. Until then, start at the official documentation.

All 9,484