aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/javascript/reference/global_objects/map/set
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-06-23 00:34:06 +0000
committerMDN <actions@users.noreply.github.com>2021-06-23 00:34:06 +0000
commit52ccdf1f0a1cee3f0659ac78e81c79dae152399b (patch)
treeb17424899ff0c32cee6820a6921edd9999da6ea1 /files/es/web/javascript/reference/global_objects/map/set
parentd62c8afe56395e9e793dab0f629b2a1694449c82 (diff)
downloadtranslated-content-52ccdf1f0a1cee3f0659ac78e81c79dae152399b.tar.gz
translated-content-52ccdf1f0a1cee3f0659ac78e81c79dae152399b.tar.bz2
translated-content-52ccdf1f0a1cee3f0659ac78e81c79dae152399b.zip
[CRON] sync translated content
Diffstat (limited to 'files/es/web/javascript/reference/global_objects/map/set')
-rw-r--r--files/es/web/javascript/reference/global_objects/map/set/index.html134
1 files changed, 0 insertions, 134 deletions
diff --git a/files/es/web/javascript/reference/global_objects/map/set/index.html b/files/es/web/javascript/reference/global_objects/map/set/index.html
deleted file mode 100644
index dd0b48d156..0000000000
--- a/files/es/web/javascript/reference/global_objects/map/set/index.html
+++ /dev/null
@@ -1,134 +0,0 @@
----
-title: Map.prototype.set()
-slug: Web/JavaScript/Reference/Global_Objects/Map/set
-tags:
- - ECMAScript6
- - JavaScript
- - Mapa
- - Prototype
- - metodo
-translation_of: Web/JavaScript/Reference/Global_Objects/Map/set
-original_slug: Web/JavaScript/Referencia/Objetos_globales/Map/set
----
-<div>{{JSRef}}</div>
-
-<p>El método <strong>set()</strong> agrega un nuevo elemento al objeto Map con la llave y el valor especificado.</p>
-
-<h2 id="Syntax">Syntax</h2>
-
-<pre class="syntaxbox"><code><em>myMap</em>.set(llave, valor);</code></pre>
-
-<h3 id="Parámetros">Parámetros</h3>
-
-<dl>
- <dt>llave</dt>
- <dd>Requerido. La llave del elemento a agregar al objeto Map.</dd>
- <dt>valor</dt>
- <dd>Requerido. El valor del elemento a agregar al objeto Map.</dd>
-</dl>
-
-<h3 id="Valor_de_retorno">Valor de retorno</h3>
-
-<p>El objeto Map.</p>
-
-<h2 id="Ejemplos">Ejemplos</h2>
-
-<h3 id="Usando_el_método_set">Usando el método set</h3>
-
-<pre class="brush: js">var miMapa = new Map();
-
-// Agregar nuevos elementos al mapa
-miMapa.set("bar", "foo");
-miMapa.set(1, "foobar");
-
-// Actualizar un elemento en el mapa
-miMapa.set("bar", "baz");
-</pre>
-
-<h2 id="Especificaciones">Especificaciones</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-map.prototype.set', 'Map.prototype.set')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td>Initial definition.</td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-map.prototype.set', 'Map.prototype.set')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilidad_con_Navegadores">Compatibilidad con Navegadores</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Caracterítica</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Soporte Básico</td>
- <td>38</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>Caracterítica</th>
- <th>Android</th>
- <th>Chrome para Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Soporte Básico</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="Notas_de_compatibilidad">Notas de compatibilidad</h2>
-
-<ul>
- <li>En versiones inferiores a Firefox 33 {{geckoRelease("33")}}, <code>Map.prototype.set</code> retorna <code>undefined</code> y no es encadenable. Esto se ha reparado ({{bug(1031632)}}). Este comportamiento también se encontró en Chrome/v8 (<a href="https://code.google.com/p/v8/issues/detail?id=3410">issue</a>).</li>
-</ul>
-
-<h2 id="Véase_también">Véase también</h2>
-
-<ul>
- <li>{{jsxref("Map")}}</li>
- <li>{{jsxref("Map.prototype.get()")}}</li>
- <li>{{jsxref("Map.prototype.has()")}}</li>
-</ul>