Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メインの Javascript インタープリターには最適化が組み込まれていますか? 私は次のような非常に単純なケースを考えています
while(i < array.length) { ... }
それがあなたが求めているものであれば、あなたのコードは最適化することができます。
var ln = array.length; // save length into local variable to reduce scope while(ln--) { ... } // only one value is evaluated in while statement