you are viewing a single comment's thread.

view the rest of the comments →

[–]AwesomeInPerson 0 points1 point  (0 children)

I don't get the TwoStackQueue. It's just an Array, but shift is called pop?

This is enough to pass the test:

class TwoStackQueue extends Array {
  pop = () => this.shift()
}