GASで任意の文字列を含んでいるかどうかを調べる

function myFunction() {
var str = ‘柴犬’

//変数strに代入した文字列に「犬」が含まれている場合
if ( str.match(/犬/)) {

Browser.msgBox(‘犬です’);

} else {

Browser.msgBox(‘犬ではありません’);

}
}

という感じ。