aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/values/index.html2
6 files changed, 1 insertions, 19 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html
index 8383d4be6a..d0c4cfc9b5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html
@@ -13,9 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/flatMap
<p><code><strong>flatMap()</strong></code> 方法首先使用映射函数映射每个元素,然后将结果压缩成一个新数组。它与 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map">map</a> 连着深度值为1的 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat">flat</a> 几乎相同,但 <code>flatMap</code> 通常在合并成一种方法的效率稍微高一些。</p>
-<p class="hidden">\{{EmbedInteractiveExample("pages/js/array-flatmap.html")}}</p>
-
-<p class="hidden">此交互式示例的源代码存储在GitHub存储库中。如果您想要为交互式示例项目做出贡献,请复制https://github.com/mdn/interactive-examples,并向我们发送 pull request。</p>
+<p>\{{EmbedInteractiveExample("pages/js/array-flatmap.html")}}</p>
<h2 id="语法">语法</h2>
@@ -110,10 +108,6 @@ arr.reduce((acc, x) =&gt; acc.concat([x, x * 2]), []);
<p>请注意,这是低效的,并且应该避免大型阵列:在每次迭代中,它创建一个必须被垃圾收集的新临时数组,并且它将元素从当前的累加器数组复制到一个新的数组中,而不是将新的元素添加到现有的数组中。</p>
-<div class="hidden">
-<p>Please do not add polyfills on this article. For reference, please check: <a href="https://discourse.mozilla.org/t/mdn-rfc-001-mdn-wiki-pages-shouldnt-be-a-distributor-of-polyfills/24500">https://discourse.mozilla.org/t/mdn-rfc-001-mdn-wiki-pages-shouldnt-be-a-distributor-of-polyfills/24500</a></p>
-</div>
-
<h2 id="规范">规范</h2>
<table class="standard-table">
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html
index cc217e28af..c362c85c77 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html
@@ -17,10 +17,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/Reduce
<div>{{EmbedInteractiveExample("pages/js/array-reduce.html")}}</div>
-<div class="hidden">
-<p>The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request. </p>
-</div>
-
<div>
<p><strong>reducer</strong> 函数接收4个参数:</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html
index 3675c12bc4..834f64aa96 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html
@@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/shift
<div>{{EmbedInteractiveExample("pages/js/array-shift.html")}}</div>
-<p class="hidden">这份交互测试源码存储在Github仓库中。如果你想为这份交互测试源码做贡献, 请克隆 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 同时提交一个pull request.</p>
-
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><var>arr</var>.shift()</code></pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html
index b69293d1db..0aa5dc1186 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html
@@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/slice
<div>{{EmbedInteractiveExample("pages/js/array-slice.html")}}</div>
-<p class="hidden">The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
-
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><var>arr</var>.slice([<var>begin</var>[, <var>end</var>]])</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html
index b2bb7374dd..6d660999b6 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html
@@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/splice
<div>{{EmbedInteractiveExample("pages/js/array-splice.html")}}</div>
-<p class="hidden">交互范例的源码储存于 GitHub 仓库。想要参与此项目,可 clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 并发送 pull request 给我们。</p>
-
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><var>array</var>.splice(<var>start[</var>, <var>deleteCount[</var>, <var>item1[</var>, <var>item2[</var>, <em>...]]]]</em>)
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
index d8cc03f53f..92e3920d88 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
@@ -84,8 +84,6 @@ iterator.next().value; // "n"
<p>如果数组中元素改变,那么迭代器的值也会改变</p>
</div>
-<p class="hidden"><strong>TODO</strong>: please write about why we need it, use cases.</p>
-
<h2 id="规范">规范</h2>
<table class="standard-table">