Last active
August 25, 2023 19:31
-
-
Save mcsee/8f6b87de8228b342caabefab2b05ca42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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