1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.isPathArray = void 0;
|
4 | var params_count_1 = require("../parser/params-count");
|
5 | /**
|
6 | * Iterates an array to check if it's an actual `PathArray`.
|
7 | */
|
8 | function isPathArray(path) {
|
9 | return (Array.isArray(path) &&
|
10 | path.every(function (seg) {
|
11 | var lk = seg[0].toLowerCase();
|
12 | return params_count_1.paramsCount[lk] === seg.length - 1 && 'achlmqstvz'.includes(lk);
|
13 | }));
|
14 | }
|
15 | exports.isPathArray = isPathArray;
|
16 | //# sourceMappingURL=is-path-array.js.map |
\ | No newline at end of file |