Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active August 25, 2023 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/8f6b87de8228b342caabefab2b05ca42 to your computer and use it in GitHub Desktop.
Save mcsee/8f6b87de8228b342caabefab2b05ca42 to your computer and use it in GitHub Desktop.
class Person {
ancestors() {
return this.mother.meAndAncerstors().concat(
this.father.meAndAncerstors());
}
meAndAncerstors() {
return this.ancestors().push(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment