Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 331 Bytes

File metadata and controls

17 lines (17 loc) · 331 Bytes
// type Character {
class Character {
  // name: String
  getName() {
    return this._name
  }
  // homeWorld: Planet
  getHomeWorld() {
    return fetchHomeworld(this._homeworldID)
  }
  // friends: [Character]
  getFriends() {
    return this._friendIDs.map(fetchCharacter)
  }
}