UNPKG

611 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isAbsoluteArray = void 0;
4var 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 */
9function 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}
17exports.isAbsoluteArray = isAbsoluteArray;
18//# sourceMappingURL=is-absolute-array.js.map
\No newline at end of file