Skip to content

Commit

Permalink
update: add isRefined getter for Property class entity
Browse files Browse the repository at this point in the history
  • Loading branch information
unsigned6 committed Jul 4, 2023
1 parent 082a037 commit 169ecf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export class Property extends NamedInMemoryEntity {
return false;
}

get isRefined() {
return Property.refinedPropertyNames.includes(this.name);
}

get propertyBranch() {
const tree = Property.propertyTree;
// safely return empty object in case the tree does not contain the name key
Expand Down

0 comments on commit 169ecf5

Please sign in to comment.