Typescript Find String In Array Javascript Mdn Addeventlistener