UNPKG
@lifaon/path
Version:
latest (3.0.0)
3.0.0
2.1.0
2.0.0
1.1.2
1.1.1
1.1.0
1.0.0
Useful tool to manage paths like the URL object
github.com/lifaon74/path
lifaon74/path
@lifaon/path
/
.private
/
segments
/
segment
/
functions
/
is
/
is-root-path-segement.js
7 lines
•
201 B
JavaScript
View Raw
1
2
3
4
5
6
7
/** * Returns true if 'segment' is a root segment. */
export
function
isRootPathSegment
(segment, rootRegExp)
{
return
rootRegExp.
test
(segment); }
//# sourceMappingURL=is-root-path-segement.js.map