1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.isAbsoluteArray = void 0;
|
4 | var is_path_array_1 = require("./is-path-array");
|
5 | /**
|
6 | * Iterates an array to check if it's a `PathArray`
|
7 | * with all absolute values.
|
8 | */
|
9 | function isAbsoluteArray(path) {
|
10 | return ((0, is_path_array_1.isPathArray)(path) &&
|
11 | // @ts-ignore -- `isPathArray` also checks if it's `Array`
|
12 | path.every(function (_a) {
|
13 | var x = _a[0];
|
14 | return x === x.toUpperCase();
|
15 | }));
|
16 | }
|
17 | exports.isAbsoluteArray = isAbsoluteArray;
|
18 | //# sourceMappingURL=is-absolute-array.js.map |
\ | No newline at end of file |