How to iterate NativeMap/NativeArray?

118 views
Skip to first unread message

Rajesh R

unread,
Sep 30, 2021, 2:39:24 PM9/30/21
to mozilla-rhino
Hello All,

I have a varibles of type map and array in JS. I want to iterate and parse the values on Java side. can anyone help me by sharing the code snippet for iteration?

Tony Germano

unread,
Oct 5, 2021, 7:32:37 PM10/5/21
to mozilla-rhino
NativeArray implements java.util.List.

I don't believe there is a way to easily iterate the entries of a NativeMap from java. 

Rajesh R

unread,
Oct 12, 2021, 1:51:32 PM10/12/21
to mozilla-rhino
Thanks for the clarification tony. 
Reply all
Reply to author
Forward
0 new messages