@lifaon/path
Version:
Useful tool to manage paths like the URL object
8 lines • 317 B
JavaScript
import { isRootPathSegment } from '../../segment/functions/is/is-root-path-segement.js';
/**
* Returns `true` if the path is absolute.
*/
export function isAbsolutePathSegments(segments, { rootRegExp }) {
return isRootPathSegment(segments[0], rootRegExp);
}
//# sourceMappingURL=is-absolute-path-segments.js.map