▲ Array Sub-Classing With [] Support at medium.com▼2 up and 0 down, posted by anywhichway 2777 days ago 2 comments
amitport 2777 days ago. link 2 points ▲ ▼checkout https://github.com/amitport/inherit-array for a pre-es6-proxy approach
anywhichway 2777 days ago. link 1 point ▲ ▼Yeah, we liked this. It is about the simplest thing we found. Downside is there is still no way to trap assignment, e.g. subArray[1] = [9] can't be prevented when it is necessary to ensure all elements are numbers.