| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Set/delete | [Back] [Original] |
Get to know MDN better
Esta pgina ha sido traducida del ingls por la comunidad. Aprende ms y nete a la comunidad de MDN Web Docs.
This feature is well established and works across many devices and browser versions. Its been available across browsers since julio de 2015.
El mtodo delete() remueve el elemento especificado del objeto Set.
mySet.delete(value);
Requerido. El valor del elemento a remover del objeto Set.
true si el elemento ha sido removido exitosamente en el Set; de otra manera retorna false.
deletevar mySet = new Set();
mySet.add("foo");
mySet.delete("bar"); // Retorna false. No hay elemento "bar" para ser removido.
mySet.delete("foo"); // Retorna true. Removido exitosamente.
mySet.has("foo"); // Retorna false. El elemento "foo" ya no est presente.
| Specification |
|---|
| ECMAScript 2027 LanguageSpecification # sec-set.prototype.delete |
This page was last modified on 5 ago 2023 by MDN contributors.
SetObject/FunctionYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |