Removing allocated_elements
else { missing . delete ( arr [ i ] ) ; } } let mi = new Array ( missing . size ) ; let l = 0 ; for ( let x of missing . values ( ) ) { mi [ l ++ ] = x ; } let m = missing . size ;