0

having javascript class :

export class PartyDetails extends MeteorComponent {
    constructor(params:RouteParams) {
        super();
    }
    get isOwner(): boolean {
        if (this.party && this.user) {
            return this.user._id === this.party.owner;
        }    
        return false;
    }    
}

What is the purpose of the get for get isOwner()

Nassim MOUALEK
  • 4,702
  • 4
  • 25
  • 44

1 Answers1

0

Get is part of the syntax to create a property. Have a look at the documentation for properties.

Steven Wexler
  • 16,589
  • 8
  • 53
  • 80