You can use the following JavaScript code to add a browser t…
Questions
Yоu cаn use the fоllоwing JаvаScript code to add a browser test for the find() method that will execute the if branch to locate an element in the invoices array if this method is supported by the user’s web browser, but move on to the else branch if the method is not supported: if (invoices.find) { let firstOverdue = invoices.find(overdue); } else { //alternate code in place of the find() method