get all keys from map js code example
Example: How to get all the key in map in array
Set<Integer> 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);