Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
JavaScript の例外 "invalid Array.prototype.sort argument" は、 Array.prototype.sort() の引数が undefined でもオペランドを比較する関数でもない場合に発生します。
Array.prototype.sort() の引数には、undefined かオペランドを比較する関数のいずれかが求められれます。
This page was last modified on 2023年8月18日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.