From c058fa0fb22dc40ef0225b21a97578cddd0aaffa Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:51:05 +0100 Subject: unslug ru: move --- .../global_objects/set/prototype/index.html | 81 ---------------------- 1 file changed, 81 deletions(-) delete mode 100644 files/ru/web/javascript/reference/global_objects/set/prototype/index.html (limited to 'files/ru/web/javascript/reference/global_objects/set') diff --git a/files/ru/web/javascript/reference/global_objects/set/prototype/index.html b/files/ru/web/javascript/reference/global_objects/set/prototype/index.html deleted file mode 100644 index a09b758046..0000000000 --- a/files/ru/web/javascript/reference/global_objects/set/prototype/index.html +++ /dev/null @@ -1,81 +0,0 @@ ---- -title: Set.prototype -slug: Web/JavaScript/Reference/Global_Objects/Set/prototype -translation_of: Web/JavaScript/Reference/Global_Objects/Set -translation_of_original: Web/JavaScript/Reference/Global_Objects/Set/prototype ---- -
{{JSRef}}
- -

The Set.prototype property represents the prototype for the {{jsxref("Set")}} constructor.

- -
{{js_property_attributes(0,0,0)}}
- -

Description

- -

{{jsxref("Set")}} instances inherit from {{jsxref("Set.prototype")}}. You can use the constructor's prototype object to add properties or methods to all Set instances.

- -

Свойства

- -
-
Set.prototype.constructor
-
Возвращает функцию, которая создала прототип экземпляра. Это функция {{jsxref("Set")}} по умолчанию.
-
{{jsxref("Set.prototype.size")}}
-
Возвращает количество элементов в объекте Set.
-
- -

Методы

- -
-
{{jsxref("Set.add", "Set.prototype.add(value)")}}
-
Добавляет новый элемент с переданным значением в Set объект. Возвращает Set объект.
-
{{jsxref("Set.prototype.clear()")}}
-
Removes all elements from the Set object.
-
{{jsxref("Set.delete", "Set.prototype.delete(value)")}}
-
Removes the element associated to the value and returns the value that Set.prototype.has(value) would have previously returned. Set.prototype.has(value) will return false afterwards.
-
{{jsxref("Set.prototype.entries()")}}
-
Returns a new Iterator object that contains an array of [value, value] for each element in the Set object, in insertion order. This is kept similar to the Map object, so that each entry has the same value for its key and value here.
-
{{jsxref("Set.forEach", "Set.prototype.forEach(callbackFn[, thisArg])")}}
-
Calls callbackFn once for each value present in the Set object, in insertion order. If a thisArg parameter is provided to forEach, it will be used as the this value for each callback.
-
{{jsxref("Set.has", "Set.prototype.has(value)")}}
-
Returns a boolean asserting whether an element is present with the given value in the Set object or not.
-
{{jsxref("Set.prototype.keys()")}}
-
Is the same function as the values() function and returns a new Iterator object that contains the values for each element in the Set object in insertion order.
-
{{jsxref("Set.prototype.values()")}}
-
Returns a new Iterator object that contains the values for each element in the Set object in insertion order.
-
{{jsxref("Set.prototype.@@iterator()", "Set.prototype[@@iterator]()")}}
-
Returns a new Iterator object that contains the values for each element in the Set object in insertion order.
-
- -

Specifications

- - - - - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('ES2015', '#sec-set.prototype', 'Set.prototype')}}{{Spec2('ES2015')}}Initial definition.
{{SpecName('ESDraft', '#sec-set.prototype', 'Set.prototype')}}{{Spec2('ESDraft')}}
- -

Browser compatibility

- - - -

{{Compat("javascript.builtins.Set.prototype")}}

- -

See also

- - -- cgit v1.2.3-54-g00ecf