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/entries | |
| 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/entries')
| -rw-r--r-- | files/ko/web/javascript/reference/global_objects/object/entries/index.html | 10 |
1 files changed, 5 insertions, 5 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> |
