Full-time web dev; JS lover since 2002; CSS fanatic. #CSSIsAwesome
I try to stay up with new web platform features. Web feature you don't understand? Tell me! I'll write an article!
He/him
Cool idea to use subclasses of native types this way! One comment: for dequeue(), it's probably cleaner and clearer to use this.shift() rather than splicing.
Cool idea to use subclasses of native types this way! One comment: for
dequeue()
, it's probably cleaner and clearer to use this.shift() rather than splicing.Thank you so much @Ken Bellows Added the change. Yes this.shift() is cleaner than splice.