UNPKG

596 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isNormalizedArray = void 0;
4var is_absolute_array_1 = require("./is-absolute-array");
5/**
6 * Iterates an array to check if it's a `PathArray`
7 * with all segments are in non-shorthand notation
8 * with absolute values.
9 */
10function isNormalizedArray(path) {
11 return (0, is_absolute_array_1.isAbsoluteArray)(path) && path.every(function (_a) {
12 var pc = _a[0];
13 return 'ACLMQZ'.includes(pc);
14 });
15}
16exports.isNormalizedArray = isNormalizedArray;
17//# sourceMappingURL=is-normalized-array.js.map
\No newline at end of file