▲ Array Sub-Classing With [] Support at medium.com▼2 up and 0 down, posted by anywhichway 2739 days ago 2 comments
anywhichway 2739 days ago. link parent 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.