diff options
Diffstat (limited to 'files/ca/web/javascript/reference/global_objects/set/delete/index.html')
-rw-r--r-- | files/ca/web/javascript/reference/global_objects/set/delete/index.html | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/files/ca/web/javascript/reference/global_objects/set/delete/index.html b/files/ca/web/javascript/reference/global_objects/set/delete/index.html deleted file mode 100644 index d2e68be67b..0000000000 --- a/files/ca/web/javascript/reference/global_objects/set/delete/index.html +++ /dev/null @@ -1,113 +0,0 @@ ---- -title: Set.prototype.delete() -slug: Web/JavaScript/Reference/Global_Objects/Set/delete -translation_of: Web/JavaScript/Reference/Global_Objects/Set/delete -original_slug: Web/JavaScript/Referencia/Objectes_globals/Set/delete ---- -<div>{{JSRef}}</div> - -<p>El mètode <code><strong>delete()</strong></code> esborra l'element especificat emmagatzemat dins l'objecte <code>Set</code>.</p> - -<h2 id="Sintaxi">Sintaxi</h2> - -<pre class="syntaxbox"><code><em>mySet</em>.delete(valor);</code></pre> - -<h3 id="Paràmetres">Paràmetres</h3> - -<dl> - <dt>valor</dt> - <dd>Obligatori. El valor de l'element a eliminar.</dd> -</dl> - -<h3 id="Valor_retornat">Valor retornat</h3> - -<p>Retorna <code>true</code> si s'ha pogut eliminar l'element de l'objecte <code>Set</code>; en cas contrari retorna <code>false</code>.</p> - -<h2 id="Exemples">Exemples</h2> - -<h3 id="Utilitzar_el_mètode_delete">Utilitzar el mètode <code>delete</code></h3> - -<pre class="brush: js">var mySet = new Set(); -mySet.add("foo"); - -mySet.delete("bar"); // Retorna false. No s'ha trobat l'element "bar". -mySet.delete("foo"); // Retorna true. S'ha pogut esborrar l'element "foo". - -mySet.has("foo"); // Retorna false. L'element "foo" ja no existeix dins el Set. -</pre> - -<h2 id="Especificacions">Especificacions</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Especificació</th> - <th scope="col">Estat</th> - <th scope="col">Comentaris</th> - </tr> - <tr> - <td>{{SpecName('ES6', '#sec-set.prototype.delete', 'Set.prototype.delete')}}</td> - <td>{{Spec2('ES6')}}</td> - <td>Definició inicial.</td> - </tr> - </tbody> -</table> - -<h2 id="Compatibilitat_amb_navegadors">Compatibilitat amb navegadors</h2> - -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Suport bàsic</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ística</th> - <th>Android</th> - <th>Chrome for Android</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Suport bàsic</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="Vegeu_també">Vegeu també</h2> - -<ul> - <li>{{jsxref("Set")}}</li> - <li>{{jsxref("Set.prototype.clear()")}}</li> -</ul> |