From d9247fba6815cc11d44e0c7c59c69157c830c467 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Thu, 16 Sep 2021 23:57:54 +0900 Subject: Web/JavaScript 以下の文書内のリンクURLを正規化 (#2354) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /en-US へのリンクを /ja へのリンクに修正 - /ja が付いていないものに /ja を付加 - MDN内のリンクが完全URLの場合、 /ja/docs からのURLに修正 --- .../reference/global_objects/array/@@iterator/index.html | 2 +- .../javascript/reference/global_objects/array/array/index.html | 2 +- .../web/javascript/reference/global_objects/array/from/index.html | 2 +- .../javascript/reference/global_objects/arraybuffer/index.html | 2 +- .../global_objects/bigint64array/bigint64array/index.html | 2 +- .../global_objects/biguint64array/biguint64array/index.html | 2 +- .../reference/global_objects/date/tolocaledatestring/index.html | 2 +- .../javascript/reference/global_objects/error/message/index.html | 2 +- .../javascript/reference/global_objects/error/stack/index.html | 2 +- .../javascript/reference/global_objects/error/tosource/index.html | 2 +- .../reference/global_objects/float32array/float32array/index.html | 2 +- .../reference/global_objects/float64array/float64array/index.html | 2 +- .../javascript/reference/global_objects/float64array/index.html | 2 +- .../javascript/reference/global_objects/function/apply/index.html | 2 +- .../web/javascript/reference/global_objects/globalthis/index.html | 2 +- .../reference/global_objects/number/tosource/index.html | 2 +- .../javascript/reference/global_objects/promise/catch/index.html | 2 +- .../javascript/reference/global_objects/promise/then/index.html | 2 +- .../javascript/reference/global_objects/reflect/has/index.html | 2 +- .../ja/web/javascript/reference/global_objects/regexp/index.html | 2 +- .../reference/global_objects/regexp/lastmatch/index.html | 2 +- .../reference/global_objects/regexp/lastparen/index.html | 2 +- .../reference/global_objects/regexp/leftcontext/index.html | 2 +- .../javascript/reference/global_objects/regexp/regexp/index.html | 2 +- .../javascript/reference/global_objects/regexp/test/index.html | 2 +- .../reference/global_objects/string/localecompare/index.html | 2 +- .../ja/web/javascript/reference/global_objects/symbol/index.html | 2 +- .../reference/global_objects/symbol/unscopables/index.html | 2 +- .../reference/global_objects/typedarray/@@species/index.html | 8 ++++---- .../reference/global_objects/webassembly/instance/index.html | 2 +- .../reference/global_objects/webassembly/instantiate/index.html | 2 +- 31 files changed, 34 insertions(+), 34 deletions(-) (limited to 'files/ja/web/javascript/reference/global_objects') diff --git a/files/ja/web/javascript/reference/global_objects/array/@@iterator/index.html b/files/ja/web/javascript/reference/global_objects/array/@@iterator/index.html index 8107c4826e..e092619e93 100644 --- a/files/ja/web/javascript/reference/global_objects/array/@@iterator/index.html +++ b/files/ja/web/javascript/reference/global_objects/array/@@iterator/index.html @@ -67,7 +67,7 @@ console.log(eArr.next().value); // e

括弧表記の使用法

-

この構文をドット記法 (Array.prototype.values()) よりも優先して使用する場合は、事前にどのようなオブジェクトになるのかが分からない場合です。イテレータを受け取り、その値を反復処理する関数があるが、そのオブジェクトが [Iterable].prototype.values メソッドを持っているかどうかわからない場合です。これはStringオブジェクトのような組み込みオブジェクトでも、カスタムオブジェクトでもよいでしょう。これは String オブジェクトのような組込みオブジェクトや、独自オブジェクトである可能性があります。

+

この構文をドット記法 (Array.prototype.values()) よりも優先して使用する場合は、事前にどのようなオブジェクトになるのかが分からない場合です。イテレータを受け取り、その値を反復処理する関数があるが、そのオブジェクトが [Iterable].prototype.values メソッドを持っているかどうかわからない場合です。これはStringオブジェクトのような組み込みオブジェクトでも、カスタムオブジェクトでもよいでしょう。これは String オブジェクトのような組込みオブジェクトや、独自オブジェクトである可能性があります。

function logIterable(it) {
   var iterator = it[Symbol.iterator]();
diff --git a/files/ja/web/javascript/reference/global_objects/array/array/index.html b/files/ja/web/javascript/reference/global_objects/array/array/index.html
index 5baaf20dd0..6f42544dfd 100644
--- a/files/ja/web/javascript/reference/global_objects/array/array/index.html
+++ b/files/ja/web/javascript/reference/global_objects/array/array/index.html
@@ -32,7 +32,7 @@ new Array(arrayLength)

配列リテラル記法

-

配列はリテラル記法を使用して生成することができます。

+

配列はリテラル記法を使用して生成することができます。

let fruits = ['りんご', 'バナナ'];
 
diff --git a/files/ja/web/javascript/reference/global_objects/array/from/index.html b/files/ja/web/javascript/reference/global_objects/array/from/index.html
index aab6b03cf7..90a9359ed4 100644
--- a/files/ja/web/javascript/reference/global_objects/array/from/index.html
+++ b/files/ja/web/javascript/reference/global_objects/array/from/index.html
@@ -49,7 +49,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/from
 
 

Array.from() は任意の引数 mapFn を持ちます。これは、作成した配列 (もしくは、サブクラスオブジェクト) のすべての要素に対して {{jsxref("Array.prototype.map", "map")}} 関数を実行できます。

-

より明確に言うと、中間配列を生成しないことを除いて、Array.from(obj, mapFn, thisArg)Array.from(obj).map(mapFn, thisArg) と同じ結果です。中間配列は、適切な型に合うように丸められた値を持つ必要があるため、typed arrays のような配列サブクラスにとっては特に重要です。

+

より明確に言うと、中間配列を生成しないことを除いて、Array.from(obj, mapFn, thisArg)Array.from(obj).map(mapFn, thisArg) と同じ結果です。中間配列は、適切な型に合うように丸められた値を持つ必要があるため、typed arrays のような配列サブクラスにとっては特に重要です。

これは、型付き配列のような特定の配列のサブクラスでは特に重要です。なぜなら、中間配列の値は適切な型に収まるように切り捨てられている必要があるからです。
diff --git a/files/ja/web/javascript/reference/global_objects/arraybuffer/index.html b/files/ja/web/javascript/reference/global_objects/arraybuffer/index.html index 378bd53d13..790ccb2694 100644 --- a/files/ja/web/javascript/reference/global_objects/arraybuffer/index.html +++ b/files/ja/web/javascript/reference/global_objects/arraybuffer/index.html @@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/ArrayBuffer

ArrayBuffer はバイトの配列で、他の言語では「バイト配列」と呼ばれることが多いです。ArrayBuffer の内容を直接操作することはできません。代わりに、型付きの配列オブジェクトか {{jsxref("DataView")}} オブジェクトのいずれかを作成して、バッファを特定の形式で表現し、バッファの内容を読み書きするためにそれを使用します。

-

ArrayBuffer() コンストラクタは、指定した長さの ArrayBuffer をバイト単位で作成します。Base64 文字列ローカルファイルなどの既存のデータから配列バッファを取得することもできます。

+

ArrayBuffer() コンストラクタは、指定した長さの ArrayBuffer をバイト単位で作成します。Base64 文字列ローカルファイルなどの既存のデータから配列バッファを取得することもできます。

コンストラクタ

diff --git a/files/ja/web/javascript/reference/global_objects/bigint64array/bigint64array/index.html b/files/ja/web/javascript/reference/global_objects/bigint64array/bigint64array/index.html index b69f3362dd..b22101ce7f 100644 --- a/files/ja/web/javascript/reference/global_objects/bigint64array/bigint64array/index.html +++ b/files/ja/web/javascript/reference/global_objects/bigint64array/bigint64array/index.html @@ -86,7 +86,7 @@ var bigint64 = new BigInt64Array(iterable);

関連情報

diff --git a/files/ja/web/javascript/reference/global_objects/biguint64array/biguint64array/index.html b/files/ja/web/javascript/reference/global_objects/biguint64array/biguint64array/index.html index e381709aba..65b2c38a64 100644 --- a/files/ja/web/javascript/reference/global_objects/biguint64array/biguint64array/index.html +++ b/files/ja/web/javascript/reference/global_objects/biguint64array/biguint64array/index.html @@ -88,7 +88,7 @@ var biguint64 = new BigUint64Array(iterable);

関連情報

diff --git a/files/ja/web/javascript/reference/global_objects/date/tolocaledatestring/index.html b/files/ja/web/javascript/reference/global_objects/date/tolocaledatestring/index.html index 9ade139ff1..8c5470ef50 100644 --- a/files/ja/web/javascript/reference/global_objects/date/tolocaledatestring/index.html +++ b/files/ja/web/javascript/reference/global_objects/date/tolocaledatestring/index.html @@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString

locales 引数と options 引数をサポートしているブラウザーは、{{anch("Browser compatibility", "ブラウザーの実装状況")}} セクションを確認してください。機能が使用できるかどうかは、{{anch("Checking_for_support_for_locales_and_options_arguments", "locales 引数と options 引数がサポートされているか確認する")}}で確認してください。

-

See the Intl.DateTimeFormat() constructor for details on these parameters and how to use them.

+

See the Intl.DateTimeFormat() constructor for details on these parameters and how to use them.

日時のそれぞれの部分ののプロパティにおける既定値は、{{jsxref("undefined")}}です。ただし、weekdayyearmonthday プロパティがすべて {{jsxref("undefined")}} のときは、yearmonthday"numeric" とみなされます。

diff --git a/files/ja/web/javascript/reference/global_objects/error/message/index.html b/files/ja/web/javascript/reference/global_objects/error/message/index.html index 0479f2c85a..c9ae29819b 100644 --- a/files/ja/web/javascript/reference/global_objects/error/message/index.html +++ b/files/ja/web/javascript/reference/global_objects/error/message/index.html @@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Error/message

解説

-

このプロパティは、利用可能または設定されている場合、エラーの簡潔な説明を含みます。SpiderMonkey は、例外の message プロパティを広範囲に渡って使用します。{{jsxref("Error.prototype.name", "name")}} プロパティは message プロパティとの組み合わせで、Error の文字列表現を生成するために {{jsxref("Error.prototype.toString()")}} メソッドにより使用されます。

+

このプロパティは、利用可能または設定されている場合、エラーの簡潔な説明を含みます。SpiderMonkey は、例外の message プロパティを広範囲に渡って使用します。{{jsxref("Error.prototype.name", "name")}} プロパティは message プロパティとの組み合わせで、Error の文字列表現を生成するために {{jsxref("Error.prototype.toString()")}} メソッドにより使用されます。

既定で message プロパティは空文字列ですが、この振る舞いは、 {{jsxref("Error/Error", "Error")}} コンストラクターの第一引数としてメッセージを指定することにより、インスタンスを上書きできます。

diff --git a/files/ja/web/javascript/reference/global_objects/error/stack/index.html b/files/ja/web/javascript/reference/global_objects/error/stack/index.html index 3d7e4c0fcb..193e7bbde0 100644 --- a/files/ja/web/javascript/reference/global_objects/error/stack/index.html +++ b/files/ja/web/javascript/reference/global_objects/error/stack/index.html @@ -101,7 +101,7 @@ try { // @file:///C:/example.html:7:6
-

//# sourceURL ディレクティブを使用して eval ソースに名前を付けることもできます。 Debugger ドキュメント内の eval ソースのデバッグブログ記事 も参照してください。

+

//# sourceURL ディレクティブを使用して eval ソースに名前を付けることもできます。 Debugger ドキュメント内の eval ソースのデバッグブログ記事 も参照してください。

仕様書

diff --git a/files/ja/web/javascript/reference/global_objects/error/tosource/index.html b/files/ja/web/javascript/reference/global_objects/error/tosource/index.html index d556359110..7c29c650fa 100644 --- a/files/ja/web/javascript/reference/global_objects/error/tosource/index.html +++ b/files/ja/web/javascript/reference/global_objects/error/tosource/index.html @@ -24,7 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Error/toSource

Using toSource

-

{{jsxref("Error")}} インスタンス (NativeErrors を含む) の toSource メソッドを呼び出すと、エラーのソースコードを含む文字列を返します。この文字列を評価して (ほぼ) 等しいオブジェクトを生成できます。通常、この文字列には、{{jsxref("Error")}} コンストラクターの構造に続けて下記のようにソースが含まれます。

+

{{jsxref("Error")}} インスタンス (NativeErrors を含む) の toSource メソッドを呼び出すと、エラーのソースコードを含む文字列を返します。この文字列を評価して (ほぼ) 等しいオブジェクトを生成できます。通常、この文字列には、{{jsxref("Error")}} コンストラクターの構造に続けて下記のようにソースが含まれます。

(newname(message ,fileName,lineNumber))
 
diff --git a/files/ja/web/javascript/reference/global_objects/float32array/float32array/index.html b/files/ja/web/javascript/reference/global_objects/float32array/float32array/index.html index d67e85f9ab..2050b28b53 100644 --- a/files/ja/web/javascript/reference/global_objects/float32array/float32array/index.html +++ b/files/ja/web/javascript/reference/global_objects/float32array/float32array/index.html @@ -97,7 +97,7 @@ var float32 = new Float32Array(iterable);

関連情報

diff --git a/files/ja/web/javascript/reference/global_objects/float64array/float64array/index.html b/files/ja/web/javascript/reference/global_objects/float64array/float64array/index.html index 00f5c14f45..d0a6cd647e 100644 --- a/files/ja/web/javascript/reference/global_objects/float64array/float64array/index.html +++ b/files/ja/web/javascript/reference/global_objects/float64array/float64array/index.html @@ -97,7 +97,7 @@ var float64 = new Float64Array(iterable);

関連情報

diff --git a/files/ja/web/javascript/reference/global_objects/float64array/index.html b/files/ja/web/javascript/reference/global_objects/float64array/index.html index 5f93139628..969d2eb1d0 100644 --- a/files/ja/web/javascript/reference/global_objects/float64array/index.html +++ b/files/ja/web/javascript/reference/global_objects/float64array/index.html @@ -191,7 +191,7 @@ var float64 = new Float64Array(iterable);

関連情報

diff --git a/files/ja/web/javascript/reference/global_objects/function/apply/index.html b/files/ja/web/javascript/reference/global_objects/function/apply/index.html index 2b4053f002..0528272d91 100644 --- a/files/ja/web/javascript/reference/global_objects/function/apply/index.html +++ b/files/ja/web/javascript/reference/global_objects/function/apply/index.html @@ -48,7 +48,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/apply
-

注: 最初の引数が undefined または null の場合、配列のスプレッド構文を使用して同様の結果を得ることができます。

+

注: 最初の引数が undefined または null の場合、配列のスプレッド構文を使用して同様の結果を得ることができます。

存在する関数を呼び出す時は通常と異なる this オブジェクトを渡すことができます。this はカレントオブジェクト、呼び出したオブジェクトを参照します。apply を用いることで、新たなオブジェクトのためにそのメソッドを書き直すことなく継承させることができます。

diff --git a/files/ja/web/javascript/reference/global_objects/globalthis/index.html b/files/ja/web/javascript/reference/global_objects/globalthis/index.html index 5d5eb8fab4..fa1017e013 100644 --- a/files/ja/web/javascript/reference/global_objects/globalthis/index.html +++ b/files/ja/web/javascript/reference/global_objects/globalthis/index.html @@ -39,7 +39,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/globalThis

異なる環境間でグローバルの検索

-

globalThis 以前は、その環境のグローバルオブジェクトを取得する信頼性の高い方法は Function('return this')() だけでした。ただし、これは設定によっては CSP 違反が発生するため、es6-shim では次のようなチェックを使用します。

+

globalThis 以前は、その環境のグローバルオブジェクトを取得する信頼性の高い方法は Function('return this')() だけでした。ただし、これは設定によっては CSP 違反が発生するため、es6-shim では次のようなチェックを使用します。

var getGlobal = function () {
   if (typeof self !== 'undefined') { return self; }
diff --git a/files/ja/web/javascript/reference/global_objects/number/tosource/index.html b/files/ja/web/javascript/reference/global_objects/number/tosource/index.html
index 58d6fbbda5..20ae3cb4bf 100644
--- a/files/ja/web/javascript/reference/global_objects/number/tosource/index.html
+++ b/files/ja/web/javascript/reference/global_objects/number/tosource/index.html
@@ -36,4 +36,4 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toSource
 
 

参照

-

Object.prototype.toSource

+

Object.prototype.toSource

diff --git a/files/ja/web/javascript/reference/global_objects/promise/catch/index.html b/files/ja/web/javascript/reference/global_objects/promise/catch/index.html index 277bda3b8a..de96865a6e 100644 --- a/files/ja/web/javascript/reference/global_objects/promise/catch/index.html +++ b/files/ja/web/javascript/reference/global_objects/promise/catch/index.html @@ -76,7 +76,7 @@ Promise.resolve().catch(function XXX(){});

解説

-

catch メソッドは複合したプロミスの複合のエラー処理に使用されます。これは {{jsxref("Promise")}} を返しますので、姉妹メソッドである {{jsxref("Promise.then", "then()")}} と同様の方法でチェーン可能です。

+

catch メソッドは複合したプロミスの複合のエラー処理に使用されます。これは {{jsxref("Promise")}} を返しますので、姉妹メソッドである {{jsxref("Promise.then", "then()")}} と同様の方法でチェーン可能です。

diff --git a/files/ja/web/javascript/reference/global_objects/promise/then/index.html b/files/ja/web/javascript/reference/global_objects/promise/then/index.html index f0ad7223d5..8fef7186d4 100644 --- a/files/ja/web/javascript/reference/global_objects/promise/then/index.html +++ b/files/ja/web/javascript/reference/global_objects/promise/then/index.html @@ -197,7 +197,7 @@ p2.then(function(value) {

Promise ベースの API を持った関数同士であれば、別の関数上に他の関数を実装することでチェーンを使うこともできます。

function fetch_current_data() {
-  // The fetch() API returns a Promise.  This function
+  // The fetch() API returns a Promise.  This function
   // exposes a similar API, except the fulfillment
   // value of this function's Promise has had more
   // work done on it.
diff --git a/files/ja/web/javascript/reference/global_objects/reflect/has/index.html b/files/ja/web/javascript/reference/global_objects/reflect/has/index.html
index 8a466f61df..e692b9c9b6 100644
--- a/files/ja/web/javascript/reference/global_objects/reflect/has/index.html
+++ b/files/ja/web/javascript/reference/global_objects/reflect/has/index.html
@@ -61,7 +61,7 @@ Reflect.has(obj, 'doorbell')  // true
 Reflect.has(obj, 'dormitory')  // false
 
-

Reflect.has は継承されたプロパティについて true を返し、これは in 演算子と同様です。

+

Reflect.has は継承されたプロパティについて true を返し、これは in 演算子と同様です。

const a = {foo: 123}
 const b = {__proto__: a}
diff --git a/files/ja/web/javascript/reference/global_objects/regexp/index.html b/files/ja/web/javascript/reference/global_objects/regexp/index.html
index 8fc458ebfa..bb99de9a76 100644
--- a/files/ja/web/javascript/reference/global_objects/regexp/index.html
+++ b/files/ja/web/javascript/reference/global_objects/regexp/index.html
@@ -53,7 +53,7 @@ let re = new RegExp('\\w+')
 
 

Perl 風の RegExp プロパティ

-

{{JSxRef("RegExp")}} のプロパティのいくつかは、長い名前と短い (Perl 風の) 名前があります。 Both names always refer to the same value. (Perl is the programming language from which JavaScript modeled its regular expressions.). See also deprecated RegExp properties.

+

{{JSxRef("RegExp")}} のプロパティのいくつかは、長い名前と短い (Perl 風の) 名前があります。 Both names always refer to the same value. (Perl is the programming language from which JavaScript modeled its regular expressions.). See also deprecated RegExp properties.

コンストラクター

diff --git a/files/ja/web/javascript/reference/global_objects/regexp/lastmatch/index.html b/files/ja/web/javascript/reference/global_objects/regexp/lastmatch/index.html index 73dc55ee32..53b82c35d6 100644 --- a/files/ja/web/javascript/reference/global_objects/regexp/lastmatch/index.html +++ b/files/ja/web/javascript/reference/global_objects/regexp/lastmatch/index.html @@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/lastMatch

lastMatch プロパティの値は、読み取り専用で、一致に成功するたびに変更されます。

-

ドットプロパティアクセサー (RegExp.$&) で短縮エイリアスを使用することはできません。その場合、パーサーは "&" という表現を期待して {{jsxref("SyntaxError")}} が発生します。プロパティへのアクセスにはブラケット表記法を使用してください。

+

ドットプロパティアクセサー (RegExp.$&) で短縮エイリアスを使用することはできません。その場合、パーサーは "&" という表現を期待して {{jsxref("SyntaxError")}} が発生します。プロパティへのアクセスにはブラケット表記法を使用してください。

diff --git a/files/ja/web/javascript/reference/global_objects/regexp/lastparen/index.html b/files/ja/web/javascript/reference/global_objects/regexp/lastparen/index.html index 678915a5a0..1eee172d9b 100644 --- a/files/ja/web/javascript/reference/global_objects/regexp/lastparen/index.html +++ b/files/ja/web/javascript/reference/global_objects/regexp/lastparen/index.html @@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/lastParen

lastParen プロパティの値は読み取り専用で、一致に成功するたびに変更されます。

-

ドットプロパティアクセサー (RegExp.$+) で短縮エイリアスを使用することはできません。その場合、パーサーは "+" という表現を期待して {{jsxref("SyntaxError")}} が発生します。プロパティへのアクセスにはブラケット表記法を使用してください。

+

ドットプロパティアクセサー (RegExp.$+) で短縮エイリアスを使用することはできません。その場合、パーサーは "+" という表現を期待して {{jsxref("SyntaxError")}} が発生します。プロパティへのアクセスにはブラケット表記法を使用してください。

diff --git a/files/ja/web/javascript/reference/global_objects/regexp/leftcontext/index.html b/files/ja/web/javascript/reference/global_objects/regexp/leftcontext/index.html index 3d86bdc8c5..26770b94bb 100644 --- a/files/ja/web/javascript/reference/global_objects/regexp/leftcontext/index.html +++ b/files/ja/web/javascript/reference/global_objects/regexp/leftcontext/index.html @@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/leftContext

leftContext プロパティの値は読み取り専用で、一致に成功するたびに変更されます。

-

ドットプロパティアクセサー (RegExp.$`) で短縮エイリアスを使用することはできません。その場合、パーサーはテンプレート文字列の開始をを期待して {{jsxref("SyntaxError")}} が発生します。プロパティへのアクセスにはブラケット表記法を使用してください。

+

ドットプロパティアクセサー (RegExp.$`) で短縮エイリアスを使用することはできません。その場合、パーサーはテンプレート文字列の開始をを期待して {{jsxref("SyntaxError")}} が発生します。プロパティへのアクセスにはブラケット表記法を使用してください。

diff --git a/files/ja/web/javascript/reference/global_objects/regexp/regexp/index.html b/files/ja/web/javascript/reference/global_objects/regexp/regexp/index.html index 9f0901f62a..b6c708ea31 100644 --- a/files/ja/web/javascript/reference/global_objects/regexp/regexp/index.html +++ b/files/ja/web/javascript/reference/global_objects/regexp/regexp/index.html @@ -32,7 +32,7 @@ RegExp(pattern[, flags])
pattern
正規表現のテキストです。
-
ES5 以降では、別な RegExp オブジェクトまたはリテラルにすることができます (後者は 2 つの RegExp コンストラクター記法のみ)。パターンには特殊文字を含めることができるため、文字列リテラルよりも広い範囲の値に一致させることができます。
+
ES5 以降では、別な RegExp オブジェクトまたはリテラルにすることができます (後者は 2 つの RegExp コンストラクター記法のみ)。パターンには特殊文字を含めることができるため、文字列リテラルよりも広い範囲の値に一致させることができます。
flags

指定された場合、 flags は追加するフラグを含む文字列です。

diff --git a/files/ja/web/javascript/reference/global_objects/regexp/test/index.html b/files/ja/web/javascript/reference/global_objects/regexp/test/index.html index 00fb7cad86..60324a1aff 100644 --- a/files/ja/web/javascript/reference/global_objects/regexp/test/index.html +++ b/files/ja/web/javascript/reference/global_objects/regexp/test/index.html @@ -70,7 +70,7 @@ console.log(result); // true

グローバルフラグを持つ正規表現の test() の使用

-

正規表現にグローバルフラグが設定されている場合、 test() は正規表現が所有する {{jsxref("RegExp.lastIndex", "lastIndex")}} の値を加算します。 ({{jsxref("RegExp.prototype.exec()", "exec()")}} も同様に lastIndex プロパティの値を加算します。)

+

正規表現にグローバルフラグが設定されている場合、 test() は正規表現が所有する {{jsxref("RegExp.lastIndex", "lastIndex")}} の値を加算します。 ({{jsxref("RegExp.prototype.exec()", "exec()")}} も同様に lastIndex プロパティの値を加算します。)

その後にさらに test(str) を呼び出すと、 strlastIndex から検索します。 lastIndex プロパティは test()true を返すたびに増え続けます。

diff --git a/files/ja/web/javascript/reference/global_objects/string/localecompare/index.html b/files/ja/web/javascript/reference/global_objects/string/localecompare/index.html index 591b71b94f..e88234381b 100644 --- a/files/ja/web/javascript/reference/global_objects/string/localecompare/index.html +++ b/files/ja/web/javascript/reference/global_objects/string/localecompare/index.html @@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/localeCompare

これらの引数は関数の振る舞いをカスタマイズし、使用されるべきフォーマット規約の言語をアプリケーションに決めさせます。引数 locales 、 options を無視する実装においては、使用されるロケールと返却される文字列の書式は完全に実装依存となります。

-

これらのパラメーターの詳細及び使用方法については Intl.Collator() コンストラクター を見てください。

+

これらのパラメーターの詳細及び使用方法については Intl.Collator() コンストラクター を見てください。

diff --git a/files/ja/web/javascript/reference/global_objects/symbol/index.html b/files/ja/web/javascript/reference/global_objects/symbol/index.html index 98e81bcdf7..54ccbf84aa 100644 --- a/files/ja/web/javascript/reference/global_objects/symbol/index.html +++ b/files/ja/web/javascript/reference/global_objects/symbol/index.html @@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol

データ型 symbol は、プリミティブデータ型です。Symbol() 関数は、symbol 型の値を返します。これは組み込みオブジェクトを公開するための静的プロパティを持ち、グローバルシンボルレジストリを公開するための静的メソッドを持つので、組み込みオブジェクトクラスのようにも見えますが、コンストラクターとしての機能を持たず、"new Symbol()" はサポートされていません。

-

Symbol() から返されるすべてのシンボル値は一意です。シンボル値は、オブジェクトプロパティの識別子として使用できます。これがデータ型の主な利用目的ですが、不透明なデータ型の有効化や、実装サポートされている一意の識別子として機能するなど、他の利用目的も存在します。目的や使用方法に関する詳細を知りたい場合、MDN用語集:Symbol を見てください。

+

Symbol() から返されるすべてのシンボル値は一意です。シンボル値は、オブジェクトプロパティの識別子として使用できます。これがデータ型の主な利用目的ですが、不透明なデータ型の有効化や、実装サポートされている一意の識別子として機能するなど、他の利用目的も存在します。目的や使用方法に関する詳細を知りたい場合、MDN用語集:Symbol を見てください。

説明

diff --git a/files/ja/web/javascript/reference/global_objects/symbol/unscopables/index.html b/files/ja/web/javascript/reference/global_objects/symbol/unscopables/index.html index a6fea2799b..e1d545e0d3 100644 --- a/files/ja/web/javascript/reference/global_objects/symbol/unscopables/index.html +++ b/files/ja/web/javascript/reference/global_objects/symbol/unscopables/index.html @@ -10,7 +10,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/unscopables ---
{{JSRef}}
-

Symbol.unscopables ウェルノウンシンボルは、自身のプロパティ名と継承されたプロパティ名が、関連付けられたオブジェクトの with 環境バインディングから除外されているオブジェクトの値を指定するために使用されます。

+

Symbol.unscopables ウェルノウンシンボルは、自身のプロパティ名と継承されたプロパティ名が、関連付けられたオブジェクトの with 環境バインディングから除外されているオブジェクトの値を指定するために使用されます。

{{EmbedInteractiveExample("pages/js/symbol-unscopables.html")}}
diff --git a/files/ja/web/javascript/reference/global_objects/typedarray/@@species/index.html b/files/ja/web/javascript/reference/global_objects/typedarray/@@species/index.html index a42596a4e7..fdeff8482d 100644 --- a/files/ja/web/javascript/reference/global_objects/typedarray/@@species/index.html +++ b/files/ja/web/javascript/reference/global_objects/typedarray/@@species/index.html @@ -11,17 +11,17 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/@@species ---
{{JSRef}}
-

TypedArray[@@species] アクセッサプロパティは、typed array のコンストラクタを返します。

+

TypedArray[@@species] アクセッサプロパティは、typed array のコンストラクタを返します。

説明

-

species アクセッサプロパティは、typed array オブジェクトの既定のコンストラクタを返します。サブクラスのコンストラクタは、コンストラクタの割り当てを変更するために、これをオーバーライドできます。

+

species アクセッサプロパティは、typed array オブジェクトの既定のコンストラクタを返します。サブクラスのコンストラクタは、コンストラクタの割り当てを変更するために、これをオーバーライドできます。

普通のオブジェクト

-

species プロパティは、指定した typed array オブジェクトの typed array コンストラクタを既定のコンストラクタ関数として返します。

+

species プロパティは、指定した typed array オブジェクトの typed array コンストラクタを既定のコンストラクタ関数として返します。

Int8Array[Symbol.species];    // function Int8Array()
 Uint8Array[Symbol.species];   // function Uint8Array()
@@ -30,7 +30,7 @@ Float32Array[Symbol.species]; // function Float32Array()
 
 

派生オブジェクト

-

派生コレクションオブジェクト(たとえば、カスタム typed array の MyTypedArray)では、MyTypedArray の species は MyTypedArray コンストラクタです。しかし、派生クラスのメソッドで、親である typed array オブジェクトを返すためにこれをオーバーライドしたいかもしれません。

+

派生コレクションオブジェクト(たとえば、カスタム typed array の MyTypedArray)では、MyTypedArray の species は MyTypedArray コンストラクタです。しかし、派生クラスのメソッドで、親である typed array オブジェクトを返すためにこれをオーバーライドしたいかもしれません。

class MyTypedArray extends Uint8Array {
   // MyTypedArray の species を親である Uint8Array コンストラクタにオーバーライド
diff --git a/files/ja/web/javascript/reference/global_objects/webassembly/instance/index.html b/files/ja/web/javascript/reference/global_objects/webassembly/instance/index.html
index f194bec747..1d88562b57 100644
--- a/files/ja/web/javascript/reference/global_objects/webassembly/instance/index.html
+++ b/files/ja/web/javascript/reference/global_objects/webassembly/instance/index.html
@@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance
 ---
 
{{JSRef}}
-

WebAssembly.Instance オブジェクトはステートフルで、実行可能な {{jsxref("WebAssembly.Module")}} のインスタンスです。 Instance オブジェクトには JavaScript から WebAssembly コードを呼び出すことができるすべてのエクスポートされた WebAssembly 関数が含まれます。

+

WebAssembly.Instance オブジェクトはステートフルで、実行可能な {{jsxref("WebAssembly.Module")}} のインスタンスです。 Instance オブジェクトには JavaScript から WebAssembly コードを呼び出すことができるすべてのエクスポートされた WebAssembly 関数が含まれます。

コンストラクター

diff --git a/files/ja/web/javascript/reference/global_objects/webassembly/instantiate/index.html b/files/ja/web/javascript/reference/global_objects/webassembly/instantiate/index.html index 740383a83f..7b50060c4b 100644 --- a/files/ja/web/javascript/reference/global_objects/webassembly/instantiate/index.html +++ b/files/ja/web/javascript/reference/global_objects/webassembly/instantiate/index.html @@ -48,7 +48,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate

例外

-- cgit v1.2.3-54-g00ecf