A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Set/size below:

Set.prototype.size - JavaScript | MDN

MDN Web Docs
  1. Tecnología web para desarrolladores
  2. JavaScript
  3. Referencia de JavaScript
  4. Objetos globales
  5. Set
  6. Set.prototype.size

Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.

Filter sidebar

En este artículo
  1. Objetos globales
  2. Set
  3. Constructor
    1. Set()
  4. Propiedades estáticas
    1. [Symbol.species]
  5. Métodos de instancia
    1. Set.prototype.add()
    2. Set.prototype.clear()
    3. Set.prototype.delete()
    4. difference()
    5. Set.prototype.entries()
    6. forEach()
    7. Set.prototype.has()
    8. intersection()
    9. isDisjointFrom()
    10. isSubsetOf()
    11. isSupersetOf()
    12. keys()
    13. symmetricDifference()
    14. union()
    15. Set.prototype.values()
    16. Set.prototype[@@iterator]()
  6. Propiedades de instancia
    1. Set.prototype.size
  7. Herencia
  8. Object/Function
  9. Métodos estáticos
    1. Function.prototype.apply()
    2. Function.prototype.bind()
    3. Function.prototype.call()
    4. Function.prototype.toString()
    5. [Symbol.hasInstance]()
  10. Propiedades estáticas
    1. Function.displayName No estándar
    2. Function.length
    3. Function.name
    4. prototype
    5. Function.prototype.arguments No estándar Obsoleto
    6. Function.caller No estándar Obsoleto
  11. Métodos de instancia
    1. Object.prototype.__defineGetter__() Obsoleto
    2. __defineSetter__() Obsoleto
    3. __lookupGetter__() Obsoleto
    4. __lookupSetter__() Obsoleto
    5. Object.prototype.hasOwnProperty()
    6. Object.prototype.isPrototypeOf()
    7. Object.prototype.propertyIsEnumerable()
    8. Object.prototype.toLocaleString()
    9. Object.prototype.toString()
    10. Object.prototype.valueOf()
  12. Propiedades de instancia
    1. Object.prototype.__proto__ Obsoleto
    2. Object.prototype.constructor
En este artículo Set.prototype.size

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

La propiedad de acceso size devuelve el número de elementos que hay en el objeto Set.

Descripción

El valor de size es un entero que representa cuantas entradas tiene el objeto Set. La función de accesso set para size es undefined; no se puede cambiar esta propiedad.

Ejemplos Usando size

js

var mySet = new Set();
mySet.add(1);
mySet.add(5);
mySet.add("un texto");

mySet.size; // 3
Especificaciones Specification ECMAScript® 2026 Language Specification
# sec-get-set.prototype.size
Compatibilidad con navegadores Ver también Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on 5 ago 2023 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4