The problem is when I trying to transfer java List (ArrayList) object to javascript as ProxyArray (ProxyArray.fromList()) it can't be used with .forEach and .push. Also if I transfer java List object as is it can be used with .forEach but not with .push. Is there any solution?
Here is gist https://gist.github.com/okrean/5d6978bac15f257b90f581f371769935