A Common-Sense Guide to Data Structures and Algorithms, Second Edition: Array length not included in for range (page 224)

A Common-Sense Guide to Data Structures and Algorithms, Second Edition by Jay Wengrow @jaywengrow

In the book on page 224, in the exercise num. 2, in the function findMissingNumber(), in the for range condition the exact value of array length is not included, I think we should include it instead, so:

for (let i = 0; i <= array.length; i++) {...}

please, can you tell me what do you think?
Many thanks!