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,542
  • 3
  • 24
  • 40

1 Answers1

0

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

Steven Wexler
  • 15,429
  • 7
  • 46
  • 80