Get the intersection of multiple semver ranges


\begin{DoxyCode}{0}
\DoxyCodeLine{const \{ intersect \} = require('semver-\/intersect');}
\DoxyCodeLine{}
\DoxyCodeLine{// \string^4.1.0}
\DoxyCodeLine{intersect('\string^4.0.0', '\string^4.1.0');}
\DoxyCodeLine{}
\DoxyCodeLine{// \string~4.3.0}
\DoxyCodeLine{intersect('\string^4.0.0', '\string~4.3.0');}
\DoxyCodeLine{}
\DoxyCodeLine{// \string~4.3.89}
\DoxyCodeLine{intersect('\string^4.0.0', '\string~4.3.89', '\string~4.3.24', '\string~4.3.63');}
\DoxyCodeLine{}
\DoxyCodeLine{// throws "{}Range >=4.5.0 is not compatible with <4.4.0"{}}
\DoxyCodeLine{intersect('\string^4.0.0', '\string~4.3.0', '\string^4.5.0') }

\end{DoxyCode}
 