Guest User

Untitled

a guest
Oct 15th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // Human::Baby by Mom & Dad
  2. class Baby extends Human {
  3. constructor (args) {
  4. super (args)
  5. }
  6.  
  7. async eat (...food) {
  8. return this.stomach = await Promise.all(food.map (async (i) => await this.process(i)));
  9. }
  10.  
  11. async pop () {
  12. return Promise.all (async () => {
  13. return this.stomach.forEach(async (food) {
  14. throw { food }
  15. })
  16. })
  17. }
  18.  
  19. async sleep () {
  20. return await this.awake ();
  21. }
  22. }
Add Comment
Please, Sign In to add comment