 Since `arr` is only used to get the `arr.length` used inside `idx`, why not just pass the `len` variable in? **edit @doowb** _I used chrome to translate this and made an attempt to retype the subject and question in English._