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.
 
 
 
 

14 lines
440 B

import { isPathArray } from './is-path-array';
/**
* Iterates an array to check if it's a `PathArray`
* with all absolute values.
*/
export function isAbsoluteArray(path) {
return (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