drowsy-probius / twitch-icon-selector

Avoid use of == and != JS-0050
Anti-pattern
Minor
2 years ago2 years old
Expected '===' and instead saw '=='
174 */
175const replaceMarquee = (match, direction, behavior, loop, scrollamount, scrolldelay, body) => {
176  // 내용이 빈 mq 태그는 무의미하므로 리턴
177  if (typeof body == "undefined") return "";178
179  // 빈 값 확인
180  if (typeof direction == "undefined") direction = "";
Expected '===' and instead saw '=='
181  if (typeof behavior == "undefined") behavior = "";
182  if (typeof loop == "undefined") loop = "";
183  if (typeof scrollamount == "undefined") scrollamount = "";
184  if (typeof scrolldelay == "undefined") scrolldelay = "";185
186  let scrollamount_value = scrollamount.replace(/[^0-9]/g, "");
187  // scrollamount 값을 50 이하로 제한함(50이 넘으면 50으로 강제 하향조정)
Expected '===' and instead saw '=='
180  if (typeof direction == "undefined") direction = "";
181  if (typeof behavior == "undefined") behavior = "";
182  if (typeof loop == "undefined") loop = "";
183  if (typeof scrollamount == "undefined") scrollamount = "";184  if (typeof scrolldelay == "undefined") scrolldelay = "";
185
186  let scrollamount_value = scrollamount.replace(/[^0-9]/g, "");
Expected '===' and instead saw '=='
179  // 빈 값 확인
180  if (typeof direction == "undefined") direction = "";
181  if (typeof behavior == "undefined") behavior = "";
182  if (typeof loop == "undefined") loop = "";183  if (typeof scrollamount == "undefined") scrollamount = "";
184  if (typeof scrolldelay == "undefined") scrolldelay = "";
185
Expected '===' and instead saw '=='
178
179  // 빈 값 확인
180  if (typeof direction == "undefined") direction = "";
181  if (typeof behavior == "undefined") behavior = "";182  if (typeof loop == "undefined") loop = "";
183  if (typeof scrollamount == "undefined") scrollamount = "";
184  if (typeof scrolldelay == "undefined") scrolldelay = "";