From 74f1c3c85cf4f0ff1cc631d1320ed90c404c6ed7 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Sun, 11 Jul 2021 13:02:49 -0400 Subject: delete conflicting/orphaned docs in ru (#1426) --- .../reference/global_objects/set/index.html | 82 ---------------------- 1 file changed, 82 deletions(-) delete mode 100644 files/ru/conflicting/web/javascript/reference/global_objects/set/index.html (limited to 'files/ru/conflicting/web/javascript/reference/global_objects/set') diff --git a/files/ru/conflicting/web/javascript/reference/global_objects/set/index.html b/files/ru/conflicting/web/javascript/reference/global_objects/set/index.html deleted file mode 100644 index 6609e026ae..0000000000 --- a/files/ru/conflicting/web/javascript/reference/global_objects/set/index.html +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: Set.prototype -slug: conflicting/Web/JavaScript/Reference/Global_Objects/Set -translation_of: Web/JavaScript/Reference/Global_Objects/Set -translation_of_original: Web/JavaScript/Reference/Global_Objects/Set/prototype -original_slug: 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