JS String Startwith Ignore Case

let name = "FoOOBaAr"
let match = "fOO"

if (name.toLowerCase().startsWith(match.toLowerCase())) {....
Wide-eyed Fox