2つ以上のクラス名を含むjQueryオブジェクト(thisClass)があります。あらかじめ決められた配列にあるクラス名だけを返す方法を見つけようとしています。
このようなもの:
var thisClass = $(this).attr("class");
var icons = ["glass","leaf","dog","home"];
[Use grep here to return thisClass only as a single class name that is filtered by, or contained in icons.]