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.
どちらが速いですか?
arr.contains(val);
また
$.inArray(val, arr);
テストする正確な方法はありますか?
JS をベンチマークする簡単な方法を探しているなら、jsperf.com をお勧めします。