I am having below array, I am trying to find a word and it is failing as the word in the array and searching word has case differences. How can we solve this?
group = ['KIRAN','RAJESH','suresh','aditya'];
name = 'rajesh';
group.find(x => x === name)
console output: undefined
name = 'RAJESH';
group.find(x => x === name)
console output : RAJESH
name = 'SURESH';
group.find(x => x === name)
console output : undefined
any idea?