how to get all keys of map js code example
Example: How to get all the key in map in array
Set keys = map.keySet();
int[] array = new int[keys.size()];
int index = 0;
for(Integer element : keys) array[index++] = element.intValue();
for(int i : array) System.out.println(i);