개발 모음집/Js

[Js] IE Default Error

wonos 2020. 4. 5. 15:44

호환성 문제로 파라미터 기본값 에러 날 시 (Explorer)

function foo(a, b) {
  a = typeof a !== 'undefined' ? a : 'null';
  b = typeof b !== 'undefined' ? b : 'null';
  ...
}