aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/javascript/reference/global_objects/map/set/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/javascript/reference/global_objects/map/set/index.html')
-rw-r--r--files/pt-br/web/javascript/reference/global_objects/map/set/index.html137
1 files changed, 0 insertions, 137 deletions
diff --git a/files/pt-br/web/javascript/reference/global_objects/map/set/index.html b/files/pt-br/web/javascript/reference/global_objects/map/set/index.html
deleted file mode 100644
index 2f50555333..0000000000
--- a/files/pt-br/web/javascript/reference/global_objects/map/set/index.html
+++ /dev/null
@@ -1,137 +0,0 @@
----
-title: Map.prototype.set()
-slug: Web/JavaScript/Reference/Global_Objects/Map/set
-tags:
- - ECMAScript 2015
- - JavaScript
- - Map
- - Prototype
- - metodo
-translation_of: Web/JavaScript/Reference/Global_Objects/Map/set
----
-<div>{{JSRef}}</div>
-
-<p>O método <code><strong>set()</strong></code> adiciona ou atualiza um elemento com uma <code>chave</code> e <code>valor</code> específicos a um objeto de <code>Map.</code></p>
-
-<h2 id="Sintaxe">Sintaxe</h2>
-
-<pre class="syntaxbox"><code><em>myMap</em>.set(chave, valor);</code></pre>
-
-<h3 id="Parâmetros">Parâmetros</h3>
-
-<dl>
- <dt>chave</dt>
- <dd>Obrigatório. A chave do elemento para adicionar ao objeto de <code>Map</code>.</dd>
- <dt>valor</dt>
- <dd>Obrigatório. O valor do elemento para adicionar ao objeto de <code>Map</code>.</dd>
-</dl>
-
-<h3 id="Valor_de_retorno">Valor de retorno</h3>
-
-<p>O objeto de <code>Map</code>.</p>
-
-<h2 id="Exemplos">Exemplos</h2>
-
-<h3 id="Usando_o_método_set">Usando o método <code>set</code> </h3>
-
-<pre class="brush: js">var myMap = new Map();
-
-// adiciona novos elementos ao map
-myMap.set('bar', 'foo');
-myMap.set(1, 'foobar');
-
-// Atualiza um elemento no map
-myMap.set('bar', 'baz');
-</pre>
-
-<h2 id="Especificações">Especificações</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Especificação</th>
- <th scope="col">Status</th>
- <th scope="col">Comentário</th>
- </tr>
- <tr>
- <td>{{SpecName('ES2015', '#sec-map.prototype.set', 'Map.prototype.set')}}</td>
- <td>{{Spec2('ES2015')}}</td>
- <td><span class="hidden"> </span>Definição    inicial.</td>
- </tr>
- <tr>
- <td><span class="hidden"> </span>{{SpecName('ESDraft', '#sec-map.prototype.set', 'Map.prototype.set')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilidade_de_navegadores">Compatibilidade de navegadores</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("13.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="Notas_sobre_compatibilidade">Notas sobre compatibilidade</h2>
-
-<ul>
- <li>Antes do Firefox 33 {{geckoRelease("33")}}, <code>Map.prototype.set</code> retornava <code>undefined</code> e não era encadeável. Isso foi corrigido ({{bug(1031632)}}). O comportamento também pode ser encontrado no Chrome/v8 (<a href="https://code.google.com/p/v8/issues/detail?id=3410">issue</a>) e IE11.</li>
-</ul>
-
-<h2 id="Veja_também">Veja também</h2>
-
-<ul>
- <li>{{jsxref("Map")}}</li>
- <li>{{jsxref("Map.prototype.get()")}}</li>
- <li>{{jsxref("Map.prototype.has()")}}</li>
-</ul>