add TraversalPath#equals
This commit is contained in:
parent
58f1e6cbc6
commit
1aa0bbfac9
@ -922,6 +922,14 @@ export default class TraversalPath {
|
||||
return !this.has(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Description
|
||||
*/
|
||||
|
||||
equals(key, value): boolean {
|
||||
return this.node[key] === value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user