https://tutorial.eyehunts.com/js/smallest-positive-integer-not-in-array-javascript-example-code/
Smallest positive integer not in array JavaScript | Example code