Make Array.indexOf() Case Insensitive In JavaScript
To make Array.indexOf() case insensitive in JavaScript, use the Array.findIndex() method with a function that performs a case-insensitive comparison. Make Array.indexOf() Case Insensitive In JavaScript For example, given the following…