It seems like you're looking to identify non-alphanumeric characters within each element of an array. For instance, the character with CharCode 13 represents a carriage return. Depending on your definition of "special," this approach might be helpful.
const elements = ["Joe", "M"+String.fromCharCode(13)+"ry", "Element_03", "Element_04"];
const foundCodes = {};
elements.join('').split('').forEach(character => {
const code = character.charCodeAt(0);
if ( code < 32 || code > 126 ) {
foundCodes[code] = true;
}
});
console.log(Object.keys(foundCodes));
I'm referring to this ASCII table for assistance, but you can see the results directly in my code.