From c364394690051c83fff04a38c1d5b3247b425c6f Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Wed, 15 Dec 2021 20:25:35 -0600 Subject: Fix typo in Web/JavaScript/Reference/Global_Objects/Array/fill, zh-CN (#3353) Co-authored-by: julieng --- .../zh-cn/web/javascript/reference/global_objects/array/fill/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html') diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html index 2acc9d6d73..955cbc9d6a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html @@ -61,7 +61,7 @@ Array(3).fill(4); // [4, 4, 4] // Objects by reference. var arr = Array(3).fill({}) // [{}, {}, {}]; -// 需要注意如果fill的参数为引用类型,会导致都执行都一个引用类型 +// 需要注意如果fill的参数为引用类型,会导致都执行同一个引用类型 // 如 arr[0] === arr[1] 为true arr[0].hi = "hi"; // [{ hi: "hi" }, { hi: "hi" }, { hi: "hi" }] -- cgit v1.2.3-54-g00ecf