From 86792571ae1a21a1e4bf526747d6dd1c2636d167 Mon Sep 17 00:00:00 2001 From: alattalatta Date: Sat, 14 Aug 2021 15:57:42 +0900 Subject: Clean up JS reference documents (#1818) * Clean up JavaScript references HTML code - Remove inline styles - Remove elements - Remove title attribute * Remove sup/sub from JavaScript reference * Remove name attrs from JavaScript reference * Remove legacy browser compat elements * Remove duplicate browser-compat key --- .../reference/global_objects/array/fill/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'files/ko/web/javascript/reference/global_objects/array/fill') diff --git a/files/ko/web/javascript/reference/global_objects/array/fill/index.html b/files/ko/web/javascript/reference/global_objects/array/fill/index.html index 5a18af7d24..04b50db326 100644 --- a/files/ko/web/javascript/reference/global_objects/array/fill/index.html +++ b/files/ko/web/javascript/reference/global_objects/array/fill/index.html @@ -16,11 +16,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/fill

{{EmbedInteractiveExample("pages/js/array-fill.html")}}

-

구문

+

구문

arr.fill(value[, start[, end]])
-

매개변수

+

매개변수

value
@@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/fill

변형한 배열.

-

설명 

+

설명 

fill 메서드는 value, startend의 3개 인자를 가집니다. startend 인자는 선택 사항으로써 기본값으로 각각 0과, this 객체의 length를 가집니다.

@@ -47,7 +47,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/fill

value에 객체를 받을 경우 그 참조만 복사해서 배열을 채웁니다.

-

예제

+

예제

[1, 2, 3].fill(4);               // [4, 4, 4]
 [1, 2, 3].fill(4, 1);            // [1, 4, 4]
@@ -65,7 +65,7 @@ var arr = Array(3).fill({}); // [{}, {}, {}]
 arr[0].hi = "hi"; // [{ hi: "hi" }, { hi: "hi" }, { hi: "hi" }]
 
-

폴리필

+

폴리필

if (!Array.prototype.fill) {
   Object.defineProperty(Array.prototype, 'fill', {
@@ -112,7 +112,7 @@ arr[0].hi = "hi"; // [{ hi: "hi" }, { hi: "hi" }, { hi: "hi" }]
   });
 }
-

명세

+

명세

@@ -134,7 +134,7 @@ arr[0].hi = "hi"; // [{ hi: "hi" }, { hi: "hi" }, { hi: "hi" }]
-

브라우저 호환성

+

브라우저 호환성

{{Compat("javascript.builtins.Array.fill")}}
-- cgit v1.2.3-54-g00ecf