インラインコードの関数呼び出しによる置き換え

refactorgram

  let appliesToMass = false;
  for(const s of states) {
    if (s === "MA") appliesToMass = true;
  }

image/svg+xml

appliesToMass = states.includes("MA");