I'm experiencing a problem with comparing values in two different arrays. Here is the code snippet:
tagNames = [];
tagNames.push('61');
cmt_wrds = '61'.replace(/[`~!@#$%^&*()_|+\-=?;:'",،؛«».<>\{\}\[\]\\\/]/gi, ' ').match(/\S+/g);
if ( tagNames[0] == cmt_wrds[0] ) { // This is where the issue lies
console.log('yes'); // --> nothing
};