You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
577 B
17 lines
577 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isAbsoluteArray = isAbsoluteArray;
|
|
var is_path_array_1 = require("./is-path-array");
|
|
/**
|
|
* Iterates an array to check if it's a `PathArray`
|
|
* with all absolute values.
|
|
*/
|
|
function isAbsoluteArray(path) {
|
|
return ((0, is_path_array_1.isPathArray)(path) &&
|
|
// @ts-ignore -- `isPathArray` also checks if it's `Array`
|
|
path.every(function (_a) {
|
|
var x = _a[0];
|
|
return x === x.toUpperCase();
|
|
}));
|
|
}
|
|
//# sourceMappingURL=is-absolute-array.js.map
|