14 lines
275 B
Plaintext
14 lines
275 B
Plaintext
const isMatch = (match, path) => {
|
|
const parts = path.split(".");
|
|
let part;
|
|
let value = match;
|
|
while ((part = parts.shift()) != null && value != null) {
|
|
value = value[part];
|
|
}
|
|
return value != null;
|
|
};
|
|
export {
|
|
isMatch
|
|
};
|
|
//# sourceMappingURL=Matches.js.map
|