September 2017
— Now the real juicy question... will this custom implementation be faster thsn shift and pop
shift
pop
All it does is change which index is considered "zero", and also length, without changing the 0 index or length of the unerlying array
— I'm guessing the custom one is faster.
— One could also use a custom object or class, but Proxy lets you use accessor brackets
— Wooo
— Oooh
— Hard question
— How was using Proxy?
— On this blessed day
— I wound up putting most functionality in the handler object
— Https://pastebin.com/BP61f3m2
— I'd like to extend Proxy.prototype so I can just do new Stack(); etc...
Proxy.prototype
new Stack();