diff options
author | 3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com> | 2022-02-01 19:42:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 19:42:11 +0900 |
commit | 4289bf1fbb823f410775b4c7d0533b7abd8e5f5f (patch) | |
tree | 624a9bf236fff00b97fc8c61a76b672333303427 /files/ko/web/javascript/reference/global_objects/object | |
parent | 41bbbf1ce8a34763e6ecc099675af29fb5bef62e (diff) | |
download | translated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.tar.gz translated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.tar.bz2 translated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.zip |
remove class 1 (#3922)
Diffstat (limited to 'files/ko/web/javascript/reference/global_objects/object')
-rw-r--r-- | files/ko/web/javascript/reference/global_objects/object/entries/index.html | 10 | ||||
-rw-r--r-- | files/ko/web/javascript/reference/global_objects/object/setprototypeof/index.html | 14 |
2 files changed, 12 insertions, 12 deletions
diff --git a/files/ko/web/javascript/reference/global_objects/object/entries/index.html b/files/ko/web/javascript/reference/global_objects/object/entries/index.html index 3056d99d31..082e931936 100644 --- a/files/ko/web/javascript/reference/global_objects/object/entries/index.html +++ b/files/ko/web/javascript/reference/global_objects/object/entries/index.html @@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/entries <h2 id="Syntax">Syntax</h2> -<pre class="syntaxbox notranslate">Object.entries(<var>obj</var>)</pre> +<pre class="syntaxbox ">Object.entries(<var>obj</var>)</pre> <h3 id="Parameters">Parameters</h3> @@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/entries <p>기본적으로 지원하지 않는 이전 환경에서 호환 가능한 <code>Object.entries</code> 지원을 추가하려면 <a href="https://github.com/tc39/proposal-object-values-entries">tc39/proposal-object-values-entries</a>에 Object.entries의 데모 구현을 찾을 수 있습니다 (IE에 대한 지원이 필요하지 않은 경우) , <a href="https://github.com/es-shims/Object.entries">es-shims/Object.entries</a> 저장소에있는 polyfill을 사용하거나 아래에 나열된 polyfill을 간단하게 배치 할 수 있습니다.</p> -<pre class="brush: js notranslate">if (!Object.entries) +<pre class="brush: js ">if (!Object.entries) Object.entries = function( obj ){ var ownProps = Object.keys( obj ), i = ownProps.length, @@ -54,7 +54,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/entries <h2 id="Examples">Examples</h2> -<pre class="brush: js notranslate">const obj = { foo: 'bar', baz: 42 }; +<pre class="brush: js ">const obj = { foo: 'bar', baz: 42 }; console.log(Object.entries(obj)); // [ ['foo', 'bar'], ['baz', 42] ] // array like object @@ -94,7 +94,7 @@ console.log(`${key} ${value}`); // "a 5", "b 7", "c 9" -<pre class="brush: js notranslate">const obj = { foo: 'bar', baz: 42 }; +<pre class="brush: js ">const obj = { foo: 'bar', baz: 42 }; const map = new Map(Object.entries(obj)); console.log(map); // Map { foo: "bar", baz: 42 } </pre> @@ -103,7 +103,7 @@ console.log(map); // Map { foo: "bar", baz: 42 } <p><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Array_destructuring">Array Destructuring</a>을 사용하면 객체를 쉽게 반복 할 수 있습니다.</p> -<pre class="brush: js notranslate">const obj = { foo: 'bar', baz: 42 }; +<pre class="brush: js ">const obj = { foo: 'bar', baz: 42 }; Object.entries(obj).forEach(([key, value]) => console.log(`${key}: ${value}`)); // "foo: bar", "baz: 42" </pre> diff --git a/files/ko/web/javascript/reference/global_objects/object/setprototypeof/index.html b/files/ko/web/javascript/reference/global_objects/object/setprototypeof/index.html index 64f7a89a18..4b01abdf50 100644 --- a/files/ko/web/javascript/reference/global_objects/object/setprototypeof/index.html +++ b/files/ko/web/javascript/reference/global_objects/object/setprototypeof/index.html @@ -14,7 +14,7 @@ browser-compat: javascript.builtins.Object.setPrototypeOf <h2 id="Syntax">Syntax</h2> -<pre class="syntaxbox notranslate"><code>Object.setPrototypeOf(<var>obj</var>, <var>prototype</var>);</code></pre> +<pre class="syntaxbox "><code>Object.setPrototypeOf(<var>obj</var>, <var>prototype</var>);</code></pre> <h3 id="Parameters">Parameters</h3> @@ -37,14 +37,14 @@ browser-compat: javascript.builtins.Object.setPrototypeOf <p>Examples</p> -<pre class="brush: js notranslate">var dict = Object.setPrototypeOf({}, null); +<pre class="brush: js ">var dict = Object.setPrototypeOf({}, null); </pre> <h2 id="Polyfill">Polyfill</h2> <p>예전 버전의 프로퍼티 {{jsxref("Object.prototype.__proto__")}} 를 사용한다면, 우리는 쉽게 Object.setPrototypeOf 가 쉽게 정의 할수 있다.</p> -<pre class="brush: js notranslate">// Only works in Chrome and FireFox, does not work in IE: +<pre class="brush: js ">// Only works in Chrome and FireFox, does not work in IE: Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) { obj.__proto__ = proto; return obj; @@ -55,7 +55,7 @@ Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) { <p><code>Object.getPrototypeOf()</code> and {{jsxref("Object.proto", "Object.prototype.__proto__")}} 의 결합은 새로운 프로토타입 오브젝트에 전반적인 프로토타입 Chain을 설정하도록 할수 있다.</p> -<pre class="brush: js notranslate">/** +<pre class="brush: js ">/** *** Object.appendChain(@object, @prototype) * * Appends the first non-native prototype of a chain to a new prototype. @@ -103,7 +103,7 @@ Object.appendChain = function(oChain, oProto) { <h4 id="First_example_프로토타입에_Chain_설정하기">First example: 프로토타입에 Chain 설정하기</h4> -<pre class="brush: js notranslate">function Mammal() { +<pre class="brush: js ">function Mammal() { this.isMammal = 'yes'; } @@ -129,7 +129,7 @@ console.log(oCat.breathing); // 'yes' <h4 id="Second_example_객체_Constructor의_인스턴스에_존재하는_원래_값을_변경_및_해당_객체_프로토타입에_Chain_설정하기">Second example: 객체 Constructor의 인스턴스에 존재하는 원래 값을 변경 및 해당 객체 프로토타입에 Chain 설정하기</h4> -<pre class="brush: js notranslate">function MySymbol() { +<pre class="brush: js ">function MySymbol() { this.isSymbol = 'yes'; } @@ -146,7 +146,7 @@ console.log(typeof oPrime); // 'object' <h4 id="Third_example_Function.prototype객체에_Chain을_설정하고_그_Chain에_새로운_함수를_설정하기">Third example: Function.prototype객체에 Chain을 설정하고 그 Chain에 새로운 함수를 설정하기</h4> -<pre class="brush: js notranslate">function Person(sName) { +<pre class="brush: js ">function Person(sName) { this.identity = sName; } |