Skip to content

Commit

Permalink
Merge pull request #12 from Exabyte-io/update/SOF-6308
Browse files Browse the repository at this point in the history
update/SOF-6308: add isRefined getter for Property class entity
  • Loading branch information
timurbazhirov authored Jul 14, 2023
2 parents bd7d623 + 169ecf5 commit c9b8562
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 c9b8562

Please sign in to comment.