Problem
Create a mechanism so that pushing to an array notifies a subscriber with the newly pushed value. Show two approaches: overriding push, and using a Proxy.
function observableArray(arr, onPush) {
// return an array-like that calls onPush(value) on every push
}