Class Person

Person

Person

Accessors

Constructors

Methods

Properties

Accessors

  • get fullName(): string
  • Format the person's full name.

    Returns string

Constructors

  • Parameters

    • firstName: string
    • middleNames: string[]
    • lastName: string
    • birthdate: DateTime<boolean>

    Returns Person

Methods

  • Get the person's birthday. If the person's birthday is the 29th of February then on a non-leap year celebrate it on the 28th of February.

    Parameters

    • current: DateTime<boolean>

    Returns boolean

Properties

birthdate: DateTime<boolean>
firstName: string
lastName: string
middleNames: string[]