Closed t2ym closed 5 years ago
[performance] Calibrate evaluation orders of conditions
Since instanceof operations are somewhat heavier than typeof and string comparison, the orders of evaluation are calibrated to optimize performance
instanceof
typeof
[performance] Calibrate evaluation orders of conditions
Since
instanceof
operations are somewhat heavier thantypeof
and string comparison, the orders of evaluation are calibrated to optimize performance