I have an string array with below value
const lists = ["EH-AA","EH-BB","EH-CC"]
I tried to use below code and I expect this statement return true.
lists.includes('EH-')
But it returns false actually.
How should I modify the condition statement so that it will return true
list? Is it a string that looks like an array, or is it an array containing 3 strings? Please edit your question to format that line of code because it changes the whole meaning of this question.