Find Missing Element In Array Javascript Iteration Methods