Stores the frequencies 's of  frequencies of array elements
let mp2 = new Map ( ) ; for ( let [ key , value ] of mp1 . entries ( ) ) { if ( mp2 . has ( value ) ) { mp2 . set ( value , mp2 . get ( value ) + 1 ) ; } else { mp2 . set ( value , 1 ) ; } }