aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'files/pl/web/javascript')
-rw-r--r--files/pl/web/javascript/data_structures/index.html444
-rw-r--r--files/pl/web/javascript/reference/deprecated_and_obsolete_features/index.html293
-rw-r--r--files/pl/web/javascript/reference/global_objects/escape/index.html121
-rw-r--r--files/pl/web/javascript/reference/global_objects/generator/index.html179
-rw-r--r--files/pl/web/javascript/reference/global_objects/string/blink/index.html51
-rw-r--r--files/pl/web/javascript/reference/global_objects/string/fromcodepoint/index.html148
-rw-r--r--files/pl/web/javascript/reference/global_objects/string/repeat/index.html167
-rw-r--r--files/pl/web/javascript/reference/global_objects/uint16array/index.html225
-rw-r--r--files/pl/web/javascript/reference/operators/instanceof/index.html169
-rw-r--r--files/pl/web/javascript/reference/operators/this/index.html347
-rw-r--r--files/pl/web/javascript/reference/statements/throw/index.html198
-rw-r--r--files/pl/web/javascript/typed_arrays/index.html274
12 files changed, 0 insertions, 2616 deletions
diff --git a/files/pl/web/javascript/data_structures/index.html b/files/pl/web/javascript/data_structures/index.html
deleted file mode 100644
index 4a86825a9e..0000000000
--- a/files/pl/web/javascript/data_structures/index.html
+++ /dev/null
@@ -1,444 +0,0 @@
----
-title: Typy oraz struktury danych w JavaScript
-slug: Web/JavaScript/Data_structures
-tags:
- - JavaScript
- - Początkujący
- - Typy danych
-translation_of: Web/JavaScript/Data_structures
-original_slug: Web/JavaScript/typy_oraz_struktury_danych
----
-<div>{{jsSidebar("More")}}</div>
-
-<div>Wszystkie języki programowania posiadają wbudowane struktury danych, mogą one jednak różnic się między poszczególnymi językami. Poniższy artykuł jest próbą stworzenia listy wbudowanych typów oraz struktur danych w JavaScript oraz ich właściwości. Mogą być one użyte do tworzenia innych struktur danych. Tam gdzie jest to możliwe dokonano porównania z innymi językami programowania.</div>
-
-<h2 id="Dynamiczne_typowanie">Dynamiczne typowanie</h2>
-
-<p>JavaScript jest językiem typowanym dynamicznie. Zmienne w Javascript nie są bezpośrednio powiązane z konkretnym typem wartości i możemy im przypisywać wartości dowolnego typu:</p>
-
-<pre class="brush: js notranslate">let foo = 42; // foo jest teraz liczbą (number)
-foo = 'bar'; // foo jest teraz ciągiem znaków (string)
-foo = true; // foo jest teraz type logicznym (boolean)
-</pre>
-
-<h2 id="Data_and_Structure_types">Data and Structure types</h2>
-
-<p>Najnowsza wersja standardu ECMAScript definiuje dziewięć typów danych:</p>
-
-<ul>
- <li>Six <strong>Data Types</strong> that are <a href="/en-US/docs/Glossary/Primitive">primitives</a>, checked by <a href="/en-US/docs/Web/JavaScript/Reference/Operators/typeof">typeof</a> operator:
-
- <ul>
- <li><a href="/en-US/docs/Glossary/Undefined">undefined</a> : <code>typeof instance === "undefined"</code></li>
- <li><a href="/en-US/docs/Glossary/Boolean">Boolean</a> : <code>typeof instance === "boolean"</code></li>
- <li><a href="/en-US/docs/Glossary/Number">Number</a> : <code>typeof instance === "number"</code></li>
- <li><a href="/en-US/docs/Glossary/String">String</a> : <code>typeof instance === "string"</code></li>
- <li><a href="/en-US/docs/Glossary/BigInt">BigInt</a><span> : </span><code>typeof instance === "bigint"</code></li>
- <li><a href="/en-US/docs/Glossary/Symbol">Symbol</a><span> : </span><code>typeof instance === "symbol"</code></li>
- </ul>
- </li>
- <li><a href="/en-US/docs/Glossary/Null">null</a><span> : </span><code>typeof instance === "object"</code>. Special <a href="/en-US/docs/Glossary/Primitive">primitive</a> type having additional usage for it's value: if object is not inherited, then <code>null</code> is shown;</li>
- <li><a href="/en-US/docs/Glossary/Object">Object</a><span> : </span><code>typeof instance === "object"</code>. Special non-data but structural type for any <a href="/en-US/docs/Learn/JavaScript/Objects#The_Constructor">constructed</a> object instance also used as data structures: new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>, new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>, new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map">Map</a>, new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set">Set</a>, new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap">WeakMap</a>, new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet">WeakSet</a>, new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date">Date</a> and almost everything made with <a href="/en-US/docs/Web/JavaScript/Reference/Operators/new">new keyword</a>;</li>
- <li><a href="/en-US/docs/Glossary/Function">Function</a><span> non data structure, though it also answers for typeof operator: </span><code>typeof instance === "function"</code>. This answer is done as a special shorthand for Functions, though every Function constructor is derived from Object constructor.</li>
-</ul>
-
-<p>Keep in mind the only valuable purpose of <code>typeof</code> operator usage is checking the Data Type. If we wish to check any Structural Type derived from Object it is pointless to use <code>typeof</code> for that, as we will always receive <code>"object"</code>. The indeed proper way to check what sort of Object we are using an <a href="/en-US/docs/Web/JavaScript/Reference/Operators/instanceof">instanceof</a> keyword. But even in that case there might be misconceptions.</p>
-
-<h2 id="Wartości_prymitywne">Wartości prymitywne</h2>
-
-<p>All types except objects define immutable values (that is, values which can't be changed). For example (and unlike in C), Strings are immutable. We refer to values of these types as "<em>primitive values</em>".</p>
-
-<h3 id="Boolean_type">Boolean type</h3>
-
-<p>Boolean represents a logical entity and can have two values: <code>true</code> and <code>false</code>. See <a href="/en-US/docs/Glossary/Boolean">Boolean</a> and {{jsxref("Boolean")}} for more details.</p>
-
-<h3 id="Null_type">Null type</h3>
-
-<p>The Null type has exactly one value: <code>null</code>. See {{jsxref("null")}} and <a href="/en-US/docs/Glossary/Null">Null</a> for more details.</p>
-
-<h3 id="Undefined_type">Undefined type</h3>
-
-<p>A variable that has not been assigned a value has the value <code>undefined</code>. See {{jsxref("undefined")}} and <a href="/en-US/docs/Glossary/Undefined">Undefined</a> for more details.</p>
-
-<h3 id="Number_type">Number type</h3>
-
-<p>ECMAScript has two built-in numeric types: <strong>Number</strong> and <strong>BigInt</strong> (see below).</p>
-
-<p>The Number type is a <a href="http://en.wikipedia.org/wiki/Double_precision_floating-point_format">double-precision 64-bit binary format IEEE 754 value</a> (numbers between -(2<sup>53</sup> − 1) and 2<sup>53</sup> − 1). In addition to representing floating-point numbers, the number type has three symbolic values: <code>+Infinity</code>, <code>-Infinity</code>, and {{jsxref("NaN")}} ("<strong>N</strong>ot a <strong>N</strong>umber").</p>
-
-<p>To check for the largest available value or smallest available value within {{jsxref("Infinity", "±Infinity")}}, you can use the constants {{jsxref("Number.MAX_VALUE")}} or {{jsxref("Number.MIN_VALUE")}}.</p>
-
-<p>Starting with ECMAScript 2015, you are also able to check if a number is in the double-precision floating-point number range using {{jsxref("Number.isSafeInteger()")}} as well as {{jsxref("Number.MAX_SAFE_INTEGER")}} and {{jsxref("Number.MIN_SAFE_INTEGER")}}. Beyond this range, integers in JavaScript are not safe anymore and will be a double-precision floating point approximation of the value.</p>
-
-<p>The number type has only one integer with two representations: <code>0</code> is represented as both <code>-0</code> and <code>+0</code>. (<code>0</code> is an alias for <code>+0</code>.) </p>
-
-<p>In the praxis, this has almost no impact. For example, <code>+0 === -0</code> is <code>true</code>. However, you are able to notice this when you divide by zero:</p>
-
-<pre class="brush: js notranslate">&gt; 42 / +0
-Infinity
-&gt; 42 / -0
--Infinity
-</pre>
-
-<p>Although a number often represents only its value, JavaScript provides {{jsxref("Operators/Bitwise_Operators", "binary (bitwise) operators")}}.</p>
-
-<p>These bitwise operators can be used to represent several Boolean values within a single number using <a class="external" href="http://en.wikipedia.org/wiki/Mask_%28computing%29">bit masking</a>. However, this is usually considered a bad practice, since JavaScript offers other means to represent a set of Booleans (like an array of Booleans, or an object with Boolean values assigned to named properties). Bit masking also tends to make the code more difficult to read, understand, and maintain.</p>
-
-<p>It may be necessary to use such techniques in very constrained environments, like when trying to cope with the limitations of local storage, or in extreme cases (such as when each bit over the network counts). This technique should only be considered when it is the last measure that can be taken to optimize size.</p>
-
-<h3 id="BigInt_type">BigInt type</h3>
-
-<p>The {{jsxref("BigInt")}} type is a numeric primitive in JavaScript that can represent integers with arbitrary precision. With <code>BigInt</code>s, you can safely store and operate on large integers even beyond the safe integer limit for <code>Number</code>s.</p>
-
-<p>A <code>BigInt</code> is created by appending <code>n</code> to the end of an integer or by calling the constructor.</p>
-
-<p>You can obtain the safest value that can be incremented with <code>Number</code>s by using the constant {{jsxref("Number.MAX_SAFE_INTEGER")}}. With the introduction of <code>BigInt</code>s, you can operate with numbers beyond the {{jsxref("Number.MAX_SAFE_INTEGER")}}.</p>
-
-<p>This example demonstrates, where incrementing the {{jsxref("Number.MAX_SAFE_INTEGER")}} returns the expected result:</p>
-
-<pre class="brush: js notranslate">&gt; const x = 2n ** 53n;
-9007199254740992n
-&gt; const y = x + 1n;
-9007199254740993n
-</pre>
-
-<p>You can use the operators <code>+</code>, <code>*</code>, <code>-</code>, <code>**</code>, and <code>%</code> with <code>BigInt</code>s—just like with <code>Number</code>s. A <code>BigInt</code> is not strictly equal to a <code>Number</code>, but it is loosely so.</p>
-
-<p>A <code>BigInt</code> behaves like a <code>Number</code> in cases where it is converted to <code>Boolean</code>: <code>if</code>, <code>||</code>, <code>&amp;&amp;</code>, <code>Boolean</code>, <code>!</code>.</p>
-
-<p><code>BigInt</code>s cannot be operated on interchangeably with <code>Number</code>s. Instead a {{jsxref("TypeError")}} will be thrown.</p>
-
-<h3 id="String_type">String type</h3>
-
-<p>JavaScript's {{jsxref("String")}} type is used to represent textual data. It is a set of "elements" of 16-bit unsigned integer values. Each element in the String occupies a position in the String. The first element is at index <code>0</code>, the next at index <code>1</code>, and so on. The length of a String is the number of elements in it.</p>
-
-<p>Unlike some programming languages (such as C), JavaScript strings are immutable. This means that once a string is created, it is not possible to modify it.</p>
-
-<p>However, it is still possible to create another string based on an operation on the original string. For example:</p>
-
-<ul>
- <li>A substring of the original by picking individual letters or using {{jsxref("String.substr()")}}.</li>
- <li>A concatenation of two strings using the concatenation operator (<code>+</code>) or {{jsxref("String.concat()")}}.</li>
-</ul>
-
-<h4 id="Beware_of_stringly-typing_your_code!">Beware of "stringly-typing" your code!</h4>
-
-<p>It can be tempting to use strings to represent complex data. Doing this comes with short-term benefits:</p>
-
-<ul>
- <li>It is easy to build complex strings with concatenation.</li>
- <li>Strings are easy to debug (what you see printed is always what is in the string).</li>
- <li>Strings are the common denominator of a lot of APIs (<a href="/en-US/docs/Web/API/HTMLInputElement" title="HTMLInputElement">input fields</a>, <a href="/en-US/docs/Storage" title="Storage">local storage</a> values, <a href="/en-US/docs/Web/API/XMLHttpRequest" title="Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing."><code>XMLHttpRequest</code></a> responses when using <code>responseText</code>, etc.) and it can be tempting to only work with strings.</li>
-</ul>
-
-<p>With conventions, it is possible to represent any data structure in a string. This does not make it a good idea. For instance, with a separator, one could emulate a list (while a JavaScript array would be more suitable). Unfortunately, when the separator is used in one of the "list" elements, then, the list is broken. An escape character can be chosen, etc. All of this requires conventions and creates an unnecessary maintenance burden.</p>
-
-<p>Use strings for textual data. When representing complex data, parse strings and use the appropriate abstraction.</p>
-
-<h3 id="Symbol_type">Symbol type</h3>
-
-<p>Symbols are new to JavaScript in ECMAScript 2015. A Symbol is a <strong>unique</strong> and <strong>immutable</strong> primitive value and may be used as the key of an Object property (see below). In some programming languages, Symbols are called "atoms".</p>
-
-<p>For more details see <a href="/en-US/docs/Glossary/Symbol">Symbol</a> and the {{jsxref("Symbol")}} object wrapper in JavaScript.</p>
-
-<h2 id="Obiekty">Obiekty</h2>
-
-<p>In computer science, an object is a value in memory which is possibly referenced by an <a href="/en-US/docs/Glossary/Identifier">identifier</a>.</p>
-
-<h3 id="Properties">Properties</h3>
-
-<p>In JavaScript, objects can be seen as a collection of properties. With the <a href="/en-US/docs/Web/JavaScript/Guide/Values,_variables,_and_literals#Object_literals">object literal syntax</a>, a limited set of properties are initialized; then properties can be added and removed. Property values can be values of any type, including other objects, which enables building complex data structures. Properties are identified using <em>key</em> values. A <em>key</em> value is either a String or a Symbol value.</p>
-
-<p>There are two types of object properties which have certain attributes: The <em>data</em> property and the <em>accessor</em> property.</p>
-
-<h4 id="Data_property">Data property</h4>
-
-<p>Associates a key with a value, and has the following attributes:</p>
-
-<table class="standard-table">
- <caption>Attributes of a data property</caption>
- <thead>
- <tr>
- <th scope="col">Attribute</th>
- <th scope="col">Type</th>
- <th scope="col">Description</th>
- <th scope="col">Default value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>[[Value]]</td>
- <td>Any JavaScript type</td>
- <td>The value retrieved by a get access of the property.</td>
- <td><code>undefined</code></td>
- </tr>
- <tr>
- <td>[[Writable]]</td>
- <td>Boolean</td>
- <td>If <code>false</code>, the property's [[Value]] cannot be changed.</td>
- <td><code>false</code></td>
- </tr>
- <tr>
- <td>[[Enumerable]]</td>
- <td>Boolean</td>
- <td>
- <p>If <code>true</code>, the property will be enumerated in <a href="/en-US/docs/Web/JavaScript/Reference/Statements/for...in">for...in</a> loops.<br>
- See also <a href="/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties">Enumerability and ownership of properties</a>.</p>
- </td>
- <td><code>false</code></td>
- </tr>
- <tr>
- <td>[[Configurable]]</td>
- <td>Boolean</td>
- <td>If <code>false</code>, the property cannot be deleted, cannot be changed to an accessor property, and attributes other than [[Value]] and [[Writable]] cannot be changed.</td>
- <td><code>false</code></td>
- </tr>
- </tbody>
-</table>
-
-<table class="standard-table">
- <caption>Obsolete attributes (as of ECMAScript 3, renamed in ECMAScript 5)</caption>
- <thead>
- <tr>
- <th scope="col">Attribute</th>
- <th scope="col">Type</th>
- <th scope="col">Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Read-only</td>
- <td>Boolean</td>
- <td>Reversed state of the ES5 [[Writable]] attribute.</td>
- </tr>
- <tr>
- <td>DontEnum</td>
- <td>Boolean</td>
- <td>Reversed state of the ES5 [[Enumerable]] attribute.</td>
- </tr>
- <tr>
- <td>DontDelete</td>
- <td>Boolean</td>
- <td>Reversed state of the ES5 [[Configurable]] attribute.</td>
- </tr>
- </tbody>
-</table>
-
-<h4 id="Accessor_property">Accessor property</h4>
-
-<p>Associates a key with one of two accessor functions (<code>get</code> and <code>set</code>) to retrieve or store a value, and has the following attributes:</p>
-
-<table class="standard-table">
- <caption>Attributes of an accessor property</caption>
- <thead>
- <tr>
- <th scope="col">Attribute</th>
- <th scope="col">Type</th>
- <th scope="col">Description</th>
- <th scope="col">Default value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>[[Get]]</td>
- <td>Function object or <code>undefined</code></td>
- <td>The function is called with an empty argument list and retrieves the property value whenever a get access to the value is performed.<br>
- See also <a href="/en-US/docs/Web/JavaScript/Reference/Operators/get"><code>get</code></a>.</td>
- <td><code>undefined</code></td>
- </tr>
- <tr>
- <td>[[Set]]</td>
- <td>Function object or <code>undefined</code></td>
- <td>The function is called with an argument that contains the assigned value and is executed whenever a specified property is attempted to be changed.<br>
- See also <a href="/en-US/docs/Web/JavaScript/Reference/Operators/set"><code>set</code></a>.</td>
- <td><code>undefined</code></td>
- </tr>
- <tr>
- <td>[[Enumerable]]</td>
- <td>Boolean</td>
- <td>If <code>true</code>, the property will be enumerated in <a href="/en-US/docs/Web/JavaScript/Reference/Statements/for...in">for...in</a> loops.</td>
- <td><code>false</code></td>
- </tr>
- <tr>
- <td>[[Configurable]]</td>
- <td>Boolean</td>
- <td>If <code>false</code>, the property can't be deleted and can't be changed to a data property.</td>
- <td><code>false</code></td>
- </tr>
- </tbody>
-</table>
-
-<div class="note">
-<p><strong>Note: </strong>Attribute is usually used by JavaScript engine, so you can't directly access it (see more about {{jsxref("Object.defineProperty()")}}). That's why the attribute is put in double square brackets instead of single.</p>
-</div>
-
-<h3 id="Normal_objects_and_functions">"Normal" objects, and functions</h3>
-
-<p>A JavaScript object is a mapping between <em>keys</em> and <em>values</em>. Keys are strings (or {{jsxref("Symbol")}}s), and <em>values</em> can be anything. This makes objects a natural fit for <a class="external" href="http://en.wikipedia.org/wiki/Hash_table">hashmaps</a>.</p>
-
-<p>Functions are regular objects with the additional capability of being <em>callable</em>.</p>
-
-<h3 id="Dates">Dates</h3>
-
-<p>When representing dates, the best choice is to use the built-in <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date"><code>Date</code> utility</a> in JavaScript.</p>
-
-<h3 id="Indexed_collections_Arrays_and_typed_Arrays">Indexed collections: Arrays and typed Arrays</h3>
-
-<p><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="Array">Arrays</a> are regular objects for which there is a particular relationship between integer-key-ed properties and the <code>length</code> property.</p>
-
-<p>Additionally, arrays inherit from <code>Array.prototype</code>, which provides to them a handful of convenient methods to manipulate arrays. For example, <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf" title="en/JavaScript/Reference/Global_Objects/Array/indexOf">indexOf</a></code> (searching a value in the array) or <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array/push" title="en/JavaScript/Reference/Global_Objects/Array/push">push</a></code> (adding an element to the array), and so on. This makes Arrays a perfect candidate to represent lists or sets.</p>
-
-<p><a href="/en-US/docs/Web/JavaScript/Typed_arrays">Typed Arrays</a> are new to JavaScript with ECMAScript 2015, and present an array-like view of an underlying binary data buffer. The following table helps determine the equivalent C data types:</p>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th class="header" scope="col">Type</th>
- <th class="header" scope="col">Value Range</th>
- <th class="header" scope="col">Size in bytes</th>
- <th class="header" scope="col">Description</th>
- <th class="header" scope="col">Web IDL type</th>
- <th class="header" scope="col">Equivalent C type</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{jsxref("Int8Array")}}</td>
- <td><code>-128</code> to <code>127</code></td>
- <td>1</td>
- <td>8-bit two's complement signed integer</td>
- <td><code>byte</code></td>
- <td><code>int8_t</code></td>
- </tr>
- <tr>
- <td>{{jsxref("Uint8Array")}}</td>
- <td><code>0</code> to <code>255</code></td>
- <td>1</td>
- <td>8-bit unsigned integer</td>
- <td><code>octet</code></td>
- <td><code>uint8_t</code></td>
- </tr>
- <tr>
- <td>{{jsxref("Uint8ClampedArray")}}</td>
- <td><code>0</code> to <code>255</code></td>
- <td>1</td>
- <td>8-bit unsigned integer (clamped)</td>
- <td><code>octet</code></td>
- <td><code>uint8_t</code></td>
- </tr>
- <tr>
- <td>{{jsxref("Int16Array")}}</td>
- <td><code>-32768</code> to <code>32767</code></td>
- <td>2</td>
- <td>16-bit two's complement signed integer</td>
- <td><code>short</code></td>
- <td><code>int16_t</code></td>
- </tr>
- <tr>
- <td>{{jsxref("Uint16Array")}}</td>
- <td><code>0</code> to <code>65535</code></td>
- <td>2</td>
- <td>16-bit unsigned integer</td>
- <td><code>unsigned short</code></td>
- <td><code>uint16_t</code></td>
- </tr>
- <tr>
- <td>{{jsxref("Int32Array")}}</td>
- <td><code>-2147483648</code> to <code>2147483647</code></td>
- <td>4</td>
- <td>32-bit two's complement signed integer</td>
- <td><code>long</code></td>
- <td><code>int32_t</code></td>
- </tr>
- <tr>
- <td>{{jsxref("Uint32Array")}}</td>
- <td><code>0</code> to <code>4294967295</code></td>
- <td>4</td>
- <td>32-bit unsigned integer</td>
- <td><code>unsigned long</code></td>
- <td><code>uint32_t</code></td>
- </tr>
- <tr>
- <td>{{jsxref("Float32Array")}}</td>
- <td><code>1.2</code><span>×</span><code>10<sup>-38</sup></code> to <code>3.4</code><span>×</span><code>10<sup>38</sup></code></td>
- <td>4</td>
- <td>32-bit IEEE floating point number (7 significant digits e.g., <code>1.1234567</code>)</td>
- <td><code>unrestricted float</code></td>
- <td><code>float</code></td>
- </tr>
- <tr>
- <td>{{jsxref("Float64Array")}}</td>
- <td><code>5.0</code><span>×</span><code>10<sup>-324</sup></code> to <code>1.8</code><span>×</span><code>10<sup>308</sup></code></td>
- <td>8</td>
- <td>64-bit IEEE floating point number (16 significant digits e.g., <code>1.123...15</code>)</td>
- <td><code>unrestricted double</code></td>
- <td><code>double</code></td>
- </tr>
- <tr>
- <td>{{jsxref("BigInt64Array")}}</td>
- <td><code>-2<sup>63</sup></code> to <code>2<sup>63</sup>-1</code></td>
- <td>8</td>
- <td>64-bit two's complement signed integer</td>
- <td><code>bigint</code></td>
- <td><code>int64_t (signed long long)</code></td>
- </tr>
- <tr>
- <td>{{jsxref("BigUint64Array")}}</td>
- <td><code>0</code> to <code>2<sup>64</sup>-1</code></td>
- <td>8</td>
- <td>64-bit unsigned integer</td>
- <td><code>bigint</code></td>
- <td><code>uint64_t (unsigned long long)</code></td>
- </tr>
- </tbody>
-</table>
-
-<h3 id="Keyed_collections_Maps_Sets_WeakMaps_WeakSets">Keyed collections: Maps, Sets, WeakMaps, WeakSets</h3>
-
-<p>These data structures, introduced in ECMAScript Edition 6, take object references as keys. {{jsxref("Set")}} and {{jsxref("WeakSet")}} represent a set of objects, while {{jsxref("Map")}} and {{jsxref("WeakMap")}} associate a value to an object.</p>
-
-<p>The difference between <code>Map</code>s and <code>WeakMap</code>s is that in the former, object keys can be enumerated over. This allows garbage collection optimizations in the latter case.</p>
-
-<p>One could implement <code>Map</code>s and <code>Set</code>s in pure ECMAScript 5. However, since objects cannot be compared (in the sense of <code>&lt;</code> "less than", for instance), look-up performance would necessarily be linear. Native implementations of them (including <code>WeakMap</code>s) can have look-up performance that is approximately logarithmic to constant time.</p>
-
-<p>Usually, to bind data to a DOM node, one could set properties directly on the object, or use <code>data-*</code> attributes. This has the downside that the data is available to any script running in the same context. <code>Map</code>s and <code>WeakMap</code>s make it easy to <em>privately</em> bind data to an object.</p>
-
-<h3 id="Structured_data_JSON">Structured data: JSON</h3>
-
-<p>JSON (<strong>J</strong>ava<strong>S</strong>cript <strong>O</strong>bject <strong>N</strong>otation) is a lightweight data-interchange format, derived from JavaScript, but used by many programming languages. JSON builds universal data structures.</p>
-
-<p>See <a href="/en-US/docs/Glossary/JSON">JSON</a> and {{jsxref("JSON")}} for more details.</p>
-
-<h3 id="More_objects_in_the_standard_library">More objects in the standard library</h3>
-
-<p>JavaScript has a standard library of built-in objects.</p>
-
-<p>Please have a look at the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects">reference</a> to find out about more objects.</p>
-
-<h2 id="Określanie_typu_za_pomocą_operatora_typeof">Określanie typu za pomocą operatora <code>typeof</code></h2>
-
-<p>Operator <code>typeof</code> może być pomocny przy określeniu typu twojej zmiennej.</p>
-
-<p>Więcej szczegółów znajdziecie na stronie poświęconej operatorowi <code>typeof</code>.</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-ecmascript-data-types-and-values', 'ECMAScript Data Types and Values')}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a class="link-https" href="https://github.com/nzakas/computer-science-in-javascript/">Nicholas Zakas collection of common data structure and common algorithms in JavaScript.</a></li>
- <li><a href="https://github.com/monmohan/DataStructures_In_Javascript" title="https://github.com/monmohan/DataStructures_In_Javascript">Search Tre(i)es implemented in JavaScript</a></li>
-</ul>
diff --git a/files/pl/web/javascript/reference/deprecated_and_obsolete_features/index.html b/files/pl/web/javascript/reference/deprecated_and_obsolete_features/index.html
deleted file mode 100644
index e937d7c66d..0000000000
--- a/files/pl/web/javascript/reference/deprecated_and_obsolete_features/index.html
+++ /dev/null
@@ -1,293 +0,0 @@
----
-title: Przestarzałe własności i metody
-slug: Web/JavaScript/Reference/Deprecated_and_obsolete_features
-tags:
- - Dokumentacja_JavaScript
- - Dokumentacje
- - JavaScript
- - Strony_wymagające_dopracowania
- - Wszystkie_kategorie
-translation_of: Web/JavaScript/Reference/Deprecated_and_obsolete_features
-original_slug: Web/JavaScript/Referencje/Przestarzałe_własności_i_metody
----
-<div>{{JsSidebar("More")}}</div>
-
-<p>This page lists features of JavaScript that are deprecated (that is, still available but planned for removal) and obsolete (that is, no longer usable).</p>
-
-<h2 id="Deprecated_features">Deprecated features</h2>
-
-<p>These deprecated features can still be used, but should be used with caution because they are expected to be removed entirely sometime in the future. You should work to remove their use from your code.</p>
-
-<h3 id="RegExp_properties">RegExp properties</h3>
-
-<p>The following properties are deprecated. This does not affect their use in {{jsxref("String.replace", "replacement strings", "", 1)}}:</p>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th>Property</th>
- <th>Description</th>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.n", "$1-$9")}}</td>
- <td>
- <p>Parenthesized substring matches, if any.<br>
- <strong>Warning:</strong> Using these properties can result in problems, since browser extensions can modify them. Avoid them!</p>
- </td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.input", "$_")}}</td>
- <td>See <code>input</code>.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.multiline", "$*")}}</td>
- <td>See <code>multiline</code>.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.lastMatch", "$&amp;")}}</td>
- <td>See <code>lastMatch</code>.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.lastParen", "$+")}}</td>
- <td>See <code>lastParen</code>.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.leftContext", "$`")}}</td>
- <td>See <code>leftContext</code>.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.rightContext", "$'")}}</td>
- <td>See <code>rightContext</code>.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.input", "input")}}</td>
- <td>The string against which a regular expression is matched.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.lastMatch", "lastMatch")}}</td>
- <td>The last matched characters.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.lastParen", "lastParen")}}</td>
- <td>The last parenthesized substring match, if any.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.leftContext", "leftContext")}}</td>
- <td>The substring preceding the most recent match.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.rightContext", "rightContext")}}</td>
- <td>The substring following the most recent match.</td>
- </tr>
- </tbody>
-</table>
-
-<p>The following are now properties of <code>RegExp</code> instances, no longer of the <code>RegExp</code> object:</p>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th>Property</th>
- <th>Description</th>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.global", "global")}}</td>
- <td>Whether or not to test the regular expression against all possible matches in a string, or only against the first.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.ignoreCase", "ignoreCase")}}</td>
- <td>Whether or not to ignore case while attempting a match in a string.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.lastIndex", "lastIndex")}}</td>
- <td>The index at which to start the next match.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.multiline", "multiline")}}</td>
- <td>Whether or not to search in strings across multiple lines.</td>
- </tr>
- <tr>
- <td>{{jsxref("RegExp.source", "source")}}</td>
- <td>The text of the pattern.</td>
- </tr>
- </tbody>
-</table>
-
-<h3 id="RegExp_methods">RegExp methods</h3>
-
-<ul>
- <li>The {{jsxref("RegExp.compile", "compile()")}} method is deprecated.</li>
- <li>The <code>valueOf</code> method is no longer specialized for <code>RegExp</code>. Use {{jsxref("Object.valueOf()")}}.</li>
-</ul>
-
-<h3 id="Function_properties">Function properties</h3>
-
-<ul>
- <li>The {{jsxref("Global_Objects/Function/caller", "caller")}} and {{jsxref("Global_Objects/Function/arguments", "arguments")}} properties are deprecated, because they leak the function caller. Instead of the arguments property, you should use the {{jsxref("Functions/arguments", "arguments")}} object inside function closures.</li>
-</ul>
-
-<h3 id="Legacy_generator">Legacy generator</h3>
-
-<ul>
- <li>{{jsxref("Statements/Legacy_generator_function", "Legacy generator function statement")}} and {{jsxref("Operators/Legacy_generator_function", "Legacy generator function expression")}} are deprecated. Use {{jsxref("Statements/function*", "function* statement")}} and {{jsxref("Operators/function*", "function* expression")}} instead.</li>
- <li>{{jsxref("Operators/Array_comprehensions", "JS1.7/JS1.8 Array comprehension", "#Differences_to_the_older_JS1.7.2FJS1.8_comprehensions")}} and {{jsxref("Operators/Generator_comprehensions", "JS1.7/JS1.8 Generator comprehension", "#Differences_to_the_older_JS1.7.2FJS1.8_comprehensions")}} are deprecated.</li>
-</ul>
-
-<h3 id="Iterator">Iterator</h3>
-
-<ul>
- <li>{{jsxref("Global_Objects/StopIteration", "StopIteration")}} is deprecated.</li>
- <li>{{jsxref("Global_Objects/Iterator", "Iterator")}} is deprecated.</li>
-</ul>
-
-<h3 id="Object_methods">Object methods</h3>
-
-<ul>
- <li>{{jsxref("Object.watch", "watch")}} and {{jsxref("Object.unwatch", "unwatch")}} are deprecated. Use {{jsxref("Proxy")}} instead.</li>
- <li><code>__iterator__</code> is deprecated.</li>
- <li>{{jsxref("Object.noSuchMethod", "__noSuchMethod__")}} is deprecated. Use {{jsxref("Proxy")}} instead.</li>
-</ul>
-
-<h3 id="Date_methods">Date methods</h3>
-
-<ul>
- <li>{{jsxref("Global_Objects/Date/getYear", "getYear")}} and {{jsxref("Global_Objects/Date/setYear", "setYear")}} are affected by the Year-2000-Problem and have been subsumed by {{jsxref("Global_Objects/Date/getFullYear", "getFullYear")}} and {{jsxref("Global_Objects/Date/setFullYear", "setFullYear")}}.</li>
- <li>You should use {{jsxref("Global_Objects/Date/toISOString", "toISOString")}} instead of the deprecated {{jsxref("Global_Objects/Date/toGMTString", "toGMTString")}} method in new code.</li>
- <li>{{jsxref("Global_Objects/Date/toLocaleFormat", "toLocaleFormat")}} is deprecated.</li>
-</ul>
-
-<h3 id="Functions">Functions</h3>
-
-<ul>
- <li>{{jsxref("Operators/Expression_closures", "Expression closures", "", 1)}} are deprecated. Use regular {{jsxref("Operators/function", "functions")}} or {{jsxref("Functions/Arrow_functions", "arrow functions", "", 1)}} instead.</li>
-</ul>
-
-<h3 id="Proxy">Proxy</h3>
-
-<ul>
- <li><a href="/en-US/docs/Archive/Web/Old_Proxy_API">Proxy.create</a> and <a href="/en-US/docs/Archive/Web/Old_Proxy_API">Proxy.createFunction</a> are deprecated. Use {{jsxref("Proxy")}} instead.</li>
- <li>The following traps are obsolete:
- <ul>
- <li><code>hasOwn</code> ({{bug(980565)}}, Firefox 33).</li>
- <li><code>getEnumerablePropertyKeys</code> ({{bug(783829)}}, Firefox 37)</li>
- <li><code>getOwnPropertyNames</code> ({{bug(1007334)}}, Firefox 33)</li>
- <li><code>keys</code> ({{bug(1007334)}}, Firefox 33)</li>
- </ul>
- </li>
-</ul>
-
-<h3 id="Escape_sequences">Escape sequences</h3>
-
-<ul>
- <li>Octal escape sequences (\ followed by one, two, or three octal digits) are deprecated in string and regular expression literals.</li>
- <li>The {{jsxref("Global_Objects/escape", "escape")}} and {{jsxref("Global_Objects/unescape", "unescape")}} functions are deprecated. Use {{jsxref("Global_Objects/encodeURI", "encodeURI")}}, {{jsxref("Global_Objects/encodeURIComponent", "encodeURIComponent")}}, {{jsxref("Global_Objects/decodeURI", "decodeURI")}} or {{jsxref("Global_Objects/decodeURIComponent", "decodeURIComponent")}} to encode and decode escape sequences for special characters.</li>
-</ul>
-
-<h3 id="String_methods">String methods</h3>
-
-<ul>
- <li><a href="https://developer.mozilla.org/en-US/docs/tag/HTML%20wrapper%20methods">HTML wrapper methods</a> like {{jsxref("String.prototype.fontsize")}} and {{jsxref("String.prototype.big")}}.</li>
- <li>{{jsxref("String.prototype.quote")}} is removed from Firefox 37.</li>
- <li>non standard <code>flags</code> parameter in {{jsxref("String.prototype.search")}}, {{jsxref("String.prototype.match")}}, and {{jsxref("String.prototype.replace")}} are deprecated.</li>
-</ul>
-
-<h2 id="Obsolete_features">Obsolete features</h2>
-
-<p>These obsolete features have been entirely removed from JavaScript and can no longer be used as of the indicated version of JavaScript.</p>
-
-<h3 id="Object">Object</h3>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th>Property</th>
- <th>Description</th>
- </tr>
- <tr>
- <td>{{jsxref("Global_Objects/Object/count", "__count__")}}</td>
- <td>Returns the number of enumerable properties directly on a user-defined object.</td>
- </tr>
- <tr>
- <td>{{jsxref("Global_Objects/Object/Parent", "__parent__")}}</td>
- <td>Points to an object's context.</td>
- </tr>
- <tr>
- <td>{{jsxref("Global_Objects/Object/eval", "Object.prototype.eval()")}}</td>
- <td>Evaluates a string of JavaScript code in the context of the specified object.</td>
- </tr>
- <tr>
- <td>{{jsxref("Object.observe()")}}</td>
- <td>Asynchronously observing the changes to an object.</td>
- </tr>
- <tr>
- <td>{{jsxref("Object.unobserve()")}}</td>
- <td>Remove observers.</td>
- </tr>
- <tr>
- <td>{{jsxref("Object.getNotifier()")}}</td>
- <td>Creates an object that allows to synthetically trigger a change.</td>
- </tr>
- </tbody>
-</table>
-
-<h3 id="Function">Function</h3>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th>Property</th>
- <th>Description</th>
- </tr>
- <tr>
- <td>{{jsxref("Global_Objects/Function/arity", "arity")}}</td>
- <td>Number of formal arguments.</td>
- </tr>
- </tbody>
-</table>
-
-<h3 id="Array">Array</h3>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <td>Property</td>
- <td>Description</td>
- </tr>
- <tr>
- <td>{{jsxref("Array.observe()")}}</td>
- <td>Asynchronously observing changes to Arrays.</td>
- </tr>
- <tr>
- <td>{{jsxref("Array.unobserve()")}}</td>
- <td>Remove observers.</td>
- </tr>
- </tbody>
-</table>
-
-<h3 id="Number">Number</h3>
-
-<ul>
- <li>{{jsxref("Number.toInteger()")}}</li>
-</ul>
-
-<h3 id="ParallelArray">ParallelArray</h3>
-
-<ul>
- <li>{{jsxref("ParallelArray")}}</li>
-</ul>
-
-<h3 id="Statements">Statements</h3>
-
-<ul>
- <li>{{jsxref("Statements/for_each...in", "for each...in")}} is deprecated. Use {{jsxref("Statements/for...of", "for...of")}} instead.</li>
- <li>Destructuring {{jsxref("Statements/for...in", "for...in")}} is deprecated. Use {{jsxref("Statements/for...of", "for...of")}} instead.</li>
- <li>let blocks and let expressions are obsolete.</li>
-</ul>
-
-<h3 id="E4X">E4X</h3>
-
-<p>See <a href="/en-US/docs/Archive/Web/E4X">E4X</a> for more information.</p>
-
-<h3 id="Sharp_variables">Sharp variables</h3>
-
-<p>See <a href="/en-US/docs/Archive/Web/Sharp_variables_in_JavaScript">Sharp variables in JavaScript</a> for more information.</p>
diff --git a/files/pl/web/javascript/reference/global_objects/escape/index.html b/files/pl/web/javascript/reference/global_objects/escape/index.html
deleted file mode 100644
index 2fcf67431d..0000000000
--- a/files/pl/web/javascript/reference/global_objects/escape/index.html
+++ /dev/null
@@ -1,121 +0,0 @@
----
-title: escape()
-slug: Web/JavaScript/Reference/Global_Objects/escape
-translation_of: Web/JavaScript/Reference/Global_Objects/escape
-original_slug: Web/JavaScript/Referencje/Obiekty/escape
----
-<div>{{jsSidebar("Objects")}}</div>
-
-<p>The deprecated <code><strong>escape()</strong></code> function computes a new string in which certain characters have been replaced by a hexadecimal escape sequence. Use {{jsxref("encodeURI")}} or {{jsxref("encodeURIComponent")}} instead.</p>
-
-<h2 id="Składnia">Składnia</h2>
-
-<pre class="syntaxbox"><code>escape(str)</code></pre>
-
-<h3 id="Parametry">Parametry</h3>
-
-<dl>
- <dt><code>str</code></dt>
- <dd>A string to be encoded.</dd>
-</dl>
-
-<h2 id="Description">Description</h2>
-
-<p>The <code>escape</code> function is a property of the <em>global object</em>. Special characters are encoded with the exception of: @*_+-./</p>
-
-<p>The hexadecimal form for characters, whose code unit value is 0xFF or less, is a two-digit escape sequence: %xx. For characters with a greater code unit, the four-digit format %<strong>u</strong>xxxx is used.</p>
-
-<h2 id="Przykłady">Przykłady</h2>
-
-<pre class="brush: js">escape("abc123"); // "abc123"
-escape("äöü"); // "%E4%F6%FC"
-escape("ć"); // "%u0107"
-
-// znaki specjalne
-escape("@*_+-./"); // "@*_+-./"</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('ES1')}}</td>
- <td>{{Spec2('ES1')}}</td>
- <td>Initial definition.</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-B.2.1', 'escape')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td>Defined in the (informative) Compatibility Annex B</td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-escape-string', 'escape')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td>Defined in the (normative) Annex B for Additional ECMAScript Features for Web Browsers</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</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>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li>{{jsxref("encodeURI")}}</li>
- <li>{{jsxref("encodeURIComponent")}}</li>
-</ul>
diff --git a/files/pl/web/javascript/reference/global_objects/generator/index.html b/files/pl/web/javascript/reference/global_objects/generator/index.html
deleted file mode 100644
index a84467e7ca..0000000000
--- a/files/pl/web/javascript/reference/global_objects/generator/index.html
+++ /dev/null
@@ -1,179 +0,0 @@
----
-title: Generator
-slug: Web/JavaScript/Reference/Global_Objects/Generator
-translation_of: Web/JavaScript/Reference/Global_Objects/Generator
-original_slug: Web/JavaScript/Referencje/Obiekty/Generator
----
-<div>{{JSRef}}</div>
-
-<p>Obiekt <code><strong>Generator</strong></code> jest zwracany przez {{jsxref("Polecenia/function*", "generator function", "", 1)}} i odpowiada obu: <a href="/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable">iterable protocol</a> i <a href="/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterator">iterator protocol</a>.</p>
-
-<h2 id="Syntax">Syntax</h2>
-
-<pre class="syntaxbox">function* gen() {
- yield 1;
- yield 2;
- yield 3;
-}
-
-var g = gen(); // "Generator { }"</pre>
-
-<h2 id="Methods">Methods</h2>
-
-<dl>
- <dt>{{jsxref("Generator.prototype.next()")}}</dt>
- <dd>Returns a value yielded by the {{jsxref("Operators/yield", "yield")}} expression.</dd>
- <dt>{{jsxref("Generator.prototype.return()")}}</dt>
- <dd>Returns the given value and finishes the generator.</dd>
- <dt>{{jsxref("Generator.prototype.throw()")}}</dt>
- <dd>Throws an error to a generator.</dd>
-</dl>
-
-<h2 id="Example">Example</h2>
-
-<h3 id="An_infinite_iterator">An infinite iterator</h3>
-
-<pre class="brush: js">function* idMaker() {
- var index = 0;
- while(true)
- yield index++;
-}
-
-var gen = idMaker(); // "Generator { }"
-
-console.log(gen.next().value); // 0
-console.log(gen.next().value); // 1
-console.log(gen.next().value); // 2
-// ...</pre>
-
-<h2 id="Legacy_generator_objects">Legacy generator objects</h2>
-
-<p>Firefox (SpiderMonkey) also implements an earlier version of generators in <a href="/en-US/docs/Web/JavaScript/New_in_JavaScript/1.7">JavaScript 1.7</a>, where the star (*) in the function declaration was not necessary (you just use the <code>yield</code> keyword in the function body). However, legacy generators are deprecated. Do not use them; they are going to be removed ({{bug(1083482)}}).</p>
-
-<h3 id="Legacy_generator_methods">Legacy generator methods</h3>
-
-<dl>
- <dt><code>Generator.prototype.next() </code>{{non-standard_inline}}</dt>
- <dd>Returns a value yielded by the {{jsxref("Operatory/yield", "yield")}} expression. This corresponds to <code>next()</code> in the ES2015 generator object.</dd>
- <dt><code>Generator.prototype.close()</code> {{non-standard_inline}}</dt>
- <dd>Closes the generator, so that when calling <code>next()</code> an {{jsxref("StopIteration")}} error will be thrown. This corresponds to the <code>return()</code> method in the ES2015 generator object.</dd>
- <dt><code>Generator.prototype.send()</code> {{non-standard_inline}}</dt>
- <dd>Used to send a value to a generator. The value is returned from the {{jsxref("Operatory/yield", "yield")}} expression, and returns a value yielded by the next {{jsxref("Operatory/yield", "yield")}} expression. <code>send(x)</code> corresponds to <code>next(x)</code> in the ES2015 generator object.</dd>
- <dt><strong><code>Generator.</code></strong><code>prototype.</code><strong><code>throw()</code> </strong> {{non-standard_inline}}</dt>
- <dd>Throws an error to a generator. This corresponds to the <code>throw()</code> method in the ES2015 generator object.</dd>
-</dl>
-
-<h3 id="Legacy_generator_example">Legacy generator example</h3>
-
-<pre class="brush: js">function fibonacci() {
- var a = yield 1;
- yield a * 2;
-}
-
-var it = fibonacci();
-console.log(it); // "Generator { }"
-console.log(it.next()); // 1
-console.log(it.send(10)); // 20
-console.log(it.close()); // undefined
-console.log(it.next()); // throws StopIteration (as the generator is now closed)
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('ES2015', '#sec-generator-objects', 'Generator objects')}}</td>
- <td>{{Spec2('ES2015')}}</td>
- <td>Initial definition.</td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-generator-objects', 'Generator objects')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(39.0)}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(39.0)}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(39.0)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also">See also</h2>
-
-<h3 id="Legacy_generators">Legacy generators</h3>
-
-<ul>
- <li>{{jsxref("Statements/Legacy_generator_function", "The legacy generator function", "", 1)}}</li>
- <li>{{jsxref("Operators/Legacy_generator_function", "The legacy generator function expression", "", 1)}}</li>
- <li>{{jsxref("StopIteration")}}</li>
- <li><a href="/en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features/The_legacy_Iterator_protocol">The legacy Iterator protocol</a></li>
-</ul>
-
-<h3 id="ES2015_generators">ES2015 generators</h3>
-
-<ul>
- <li>{{jsxref("Functions", "Functions", "", 1)}}</li>
- <li>{{jsxref("Statements/function", "function")}}</li>
- <li>{{jsxref("Operators/function", "function expression")}}</li>
- <li>{{jsxref("Function")}}</li>
- <li>{{jsxref("Statements/function*", "function*")}}</li>
- <li>{{jsxref("Operators/function*", "function* expression")}}</li>
- <li>{{jsxref("GeneratorFunction")}}</li>
- <li><a href="/en-US/docs/Web/JavaScript/Guide/The_Iterator_protocol">The Iterator protocol</a></li>
-</ul>
diff --git a/files/pl/web/javascript/reference/global_objects/string/blink/index.html b/files/pl/web/javascript/reference/global_objects/string/blink/index.html
deleted file mode 100644
index 7430744309..0000000000
--- a/files/pl/web/javascript/reference/global_objects/string/blink/index.html
+++ /dev/null
@@ -1,51 +0,0 @@
----
-title: String.prototype.blink()
-slug: Web/JavaScript/Reference/Global_Objects/String/blink
-tags:
- - Deprecated
- - JavaScript
- - Method
- - Prototype
- - String
-translation_of: Web/JavaScript/Reference/Global_Objects/String/blink
-original_slug: Web/JavaScript/Referencje/Obiekty/String/blink
----
-<div>{{JSRef}} {{deprecated_header}}</div>
-
-<h2 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h2>
-
-<p>Powoduje, iż łańcuch będzie migotał tak, jakby był on wewnątrz znacznika {{HTMLElement("blink")}}.</p>
-
-<div class="warning">
-<p><strong>Warning:</strong> Blinking text is frowned upon by several accessibility standards. The <code>&lt;blink&gt;</code> element itself is non-standard and deprecated!</p>
-</div>
-
-<h2 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h2>
-
-<pre class="syntaxbox"><code><var>str</var>.blink()</code></pre>
-
-<h2 id="Opis" name="Opis">Opis</h2>
-
-<p>The <code>blink()</code> method embeds a string in a <code>&lt;blink&gt;</code> tag: <code>"&lt;blink&gt;str&lt;/blink&gt;"</code>.</p>
-
-<h2 id="Przyk.C5.82ady" name="Przyk.C5.82ady">Przykłady</h2>
-
-<h3 id="Przyk.C5.82ad:_Zastosowanie_metody_string_do_zmiany_formatowania_.C5.82a.C5.84cucha_znak.C3.B3w" name="Przyk.C5.82ad:_Zastosowanie_metody_string_do_zmiany_formatowania_.C5.82a.C5.84cucha_znak.C3.B3w">Przykład: Zastosowanie <code>blink()</code></h3>
-
-<p>Następujący przykład stosuje metodę string do zmiany formatowania łańcucha znaków:</p>
-
-<pre class="brush: js">var worldString="Witaj, Świecie";
-
-console.log(worldString.blink()); // &lt;blink&gt;Witaj, Świecie&lt;/blink&gt;
-console.log(worldString.bold()); // &lt;bold&gt;Witaj, Świecie&lt;/bold&gt;
-console.log(worldString.italics()); // &lt;i&gt;Witaj, Świecie&lt;/i&gt;
-console.log(worldString.strike()); // &lt;s&gt;Witaj, Świecie&lt;/s&gt;
-</pre>
-
-<h2 id="Zobacz_tak.C5.BCe" name="Zobacz_tak.C5.BCe">Zobacz także</h2>
-
-<ul>
- <li>{{jsxref("String.prototype.bold()")}}</li>
- <li>{{jsxref("String.prototype.italics()")}}</li>
- <li>{{jsxref("String.prototype.strike()")}}</li>
-</ul>
diff --git a/files/pl/web/javascript/reference/global_objects/string/fromcodepoint/index.html b/files/pl/web/javascript/reference/global_objects/string/fromcodepoint/index.html
deleted file mode 100644
index 0a3bacc072..0000000000
--- a/files/pl/web/javascript/reference/global_objects/string/fromcodepoint/index.html
+++ /dev/null
@@ -1,148 +0,0 @@
----
-title: String.fromCodePoint()
-slug: Web/JavaScript/Reference/Global_Objects/String/fromCodePoint
-translation_of: Web/JavaScript/Reference/Global_Objects/String/fromCodePoint
-original_slug: Web/JavaScript/Referencje/Obiekty/String/fromCodePoint
----
-<div>{{JSRef}}</div>
-
-<p>The static <strong><code>String.fromCodePoint()</code></strong> method returns a string created by using the specified sequence of code points.</p>
-
-<div>{{EmbedInteractiveExample("pages/js/string-fromcodepoint.html","shorter")}}</div>
-
-
-
-<h2 id="Syntax">Syntax</h2>
-
-<pre class="syntaxbox notranslate">String<code>.fromCodePoint(<var>num1</var>[, ...[, <var>numN</var>]])</code></pre>
-
-<h3 id="Parameters">Parameters</h3>
-
-<dl>
- <dt><code><var>num1</var>, ..., <var>numN</var></code></dt>
- <dd>A sequence of code points.</dd>
-</dl>
-
-<h3 id="Return_value">Return value</h3>
-
-<p>A string created by using the specified sequence of code points.</p>
-
-<h3 id="Exceptions">Exceptions</h3>
-
-<ul>
- <li>A {{jsxref("Errors/Not_a_codepoint", "RangeError")}} is thrown if an invalid Unicode code point is given (e.g. <code>"RangeError: NaN is not a valid code point"</code>).</li>
-</ul>
-
-<h2 id="Description">Description</h2>
-
-<p>This method returns a string (and <em>not</em> a {{jsxref("String")}} object).</p>
-
-<p>Because <code>fromCodePoint()</code> is a static method of {{jsxref("String")}}, you must call it as <code>String.fromCodePoint()</code>, rather than as a method of a {{jsxref("String")}} object you created.</p>
-
-<h2 id="Polyfill">Polyfill</h2>
-
-<p>The <code>String.fromCodePoint()</code> method has been added to ECMAScript 2015 and may not be supported in all web browsers or environments yet.</p>
-
-<p>Use the code below for a polyfill:</p>
-
-<pre class="brush: js notranslate">if (!String.fromCodePoint) (function(stringFromCharCode) {
-    var fromCodePoint = function(_) {
-      var codeUnits = [], codeLen = 0, result = "";
-      for (var index=0, len = arguments.length; index !== len; ++index) {
-        var codePoint = +arguments[index];
-  // correctly handles all cases including `NaN`, `-Infinity`, `+Infinity`
-  // The surrounding `!(...)` is required to correctly handle `NaN` cases
-  // The (codePoint&gt;&gt;&gt;0) === codePoint clause handles decimals and negatives
-        if (!(codePoint &lt; 0x10FFFF &amp;&amp; (codePoint&gt;&gt;&gt;0) === codePoint))
-          throw RangeError("Invalid code point: " + codePoint);
-        if (codePoint &lt;= 0xFFFF) { // BMP code point
-          codeLen = codeUnits.push(codePoint);
-        } else { // Astral code point; split in surrogate halves
-          // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
-          codePoint -= 0x10000;
-          codeLen = codeUnits.push(
-  (codePoint &gt;&gt; 10) + 0xD800, // highSurrogate
-  (codePoint % 0x400) + 0xDC00 // lowSurrogate
-  );
-        }
-        if (codeLen &gt;= 0x3fff) {
-          result += stringFromCharCode.apply(null, codeUnits);
-          codeUnits.length = 0;
-        }
-      }
-      return result + stringFromCharCode.apply(null, codeUnits);
-    };
-    try { // IE 8 only supports `Object.defineProperty` on DOM elements
-      Object.defineProperty(String, "fromCodePoint", {
-        "value": fromCodePoint, "configurable": true, "writable": true
-      });
-    } catch(e) {
-      String.fromCodePoint = fromCodePoint;
-    }
-}(String.fromCharCode));
-</pre>
-
-<h2 id="Examples">Examples</h2>
-
-<h3 id="Using_fromCodePoint">Using <code>fromCodePoint()</code></h3>
-
-<p>Valid input:</p>
-
-<pre class="brush: js notranslate">String.fromCodePoint(42);       // "*"
-String.fromCodePoint(65, 90);   // "AZ"
-String.fromCodePoint(0x404);    // "\u0404" == "Є"
-String.fromCodePoint(0x2F804);  // "\uD87E\uDC04"
-String.fromCodePoint(194564);   // "\uD87E\uDC04"
-String.fromCodePoint(0x1D306, 0x61, 0x1D307); // "\uD834\uDF06a\uD834\uDF07"
-</pre>
-
-<p>Invalid input:</p>
-
-<pre class="brush: js notranslate">String.fromCodePoint('_'); // RangeError
-String.fromCodePoint(Infinity); // RangeError
-String.fromCodePoint(-1); // RangeError
-String.fromCodePoint(3.14); // RangeError
-String.fromCodePoint(3e-2); // RangeError
-String.fromCodePoint(NaN); // RangeError
-</pre>
-
-<h3 id="Compared_to_fromCharCode">Compared to <code>fromCharCode()</code></h3>
-
-<p>{{jsxref("String.fromCharCode()")}} cannot return supplementary characters (i.e. code points <code>0x010000</code> – <code>0x10FFFF</code>) by specifying their code point. Instead, it requires the UTF-16 surrogate pair in order to return a supplementary character:</p>
-
-<pre class="brush: js notranslate">String.fromCharCode(0xD83C, 0xDF03); // Code Point U+1F303 "Night with
-String.fromCharCode(55356, 57091);   // Stars" == "\uD83C\uDF03"
-</pre>
-
-<p><code>String.fromCodePoint()</code>, on the other hand, can return 4-byte supplementary characters, as well as the more common 2-byte BMP characters, by specifying their code point (which is equivalent to the UTF-32 code unit):</p>
-
-<pre class="brush: js notranslate">String.fromCodePoint(0x1F303); // or 127747 in decimal
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-string.fromcodepoint', 'String.fromCodePoint')}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{Compat("javascript.builtins.String.fromCodePoint")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li>{{jsxref("String.fromCharCode()")}}</li>
- <li>{{jsxref("String.prototype.charAt()")}}</li>
- <li>{{jsxref("String.prototype.codePointAt()")}}</li>
- <li>{{jsxref("String.prototype.charCodeAt()")}}</li>
-</ul>
diff --git a/files/pl/web/javascript/reference/global_objects/string/repeat/index.html b/files/pl/web/javascript/reference/global_objects/string/repeat/index.html
deleted file mode 100644
index a6542a4bb7..0000000000
--- a/files/pl/web/javascript/reference/global_objects/string/repeat/index.html
+++ /dev/null
@@ -1,167 +0,0 @@
----
-title: String.prototype.repeat()
-slug: Web/JavaScript/Reference/Global_Objects/String/repeat
-translation_of: Web/JavaScript/Reference/Global_Objects/String/repeat
-original_slug: Web/JavaScript/Referencje/Obiekty/String/repeat
----
-<div>{{JSRef}}</div>
-
-<p>The <strong><code>repeat()</code></strong> method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.</p>
-
-<h2 id="Składnia">Składnia</h2>
-
-<pre class="syntaxbox"><var>str</var>.repeat(<var>count</var>)</pre>
-
-<h3 id="Parametry">Parametry</h3>
-
-<dl>
- <dt><code>count</code></dt>
- <dd>An integer between 0 and +∞: [0, +∞), indicating the number of times to repeat the string in the newly-created string that is to be returned.</dd>
-</dl>
-
-<h3 id="Zwracana_wartość">Zwracana wartość</h3>
-
-<p>A new string containing the specified number of copies of the given string.</p>
-
-<h3 id="Exceptions">Exceptions</h3>
-
-<ul>
- <li>{{jsxref("Errors/Negative_repetition_count", "RangeError")}}: repeat count must be non-negative.</li>
- <li>{{jsxref("Errors/Resulting_string_too_large", "RangeError")}}: repeat count must be less than infinity and not overflow maximum string size.</li>
-</ul>
-
-<h2 id="Przykłady">Przykłady</h2>
-
-<pre class="brush: js">'abc'.repeat(-1); // RangeError
-'abc'.repeat(0); // ''
-'abc'.repeat(1); // 'abc'
-'abc'.repeat(2); // 'abcabc'
-'abc'.repeat(3.5); // 'abcabcabc' (count will be converted to integer)
-'abc'.repeat(1/0); // RangeError
-
-({ toString: () =&gt; 'abc', repeat: String.prototype.repeat }).repeat(2);
-// 'abcabc' (repeat() is a generic method)
-</pre>
-
-<h2 id="Polyfill">Polyfill</h2>
-
-<p>This method has been added to the ECMAScript 6 specification and may not be available in all JavaScript implementations yet. However, you can polyfill <code>String.prototype.repeat()</code> with the following snippet:</p>
-
-<pre class="brush: js">if (!String.prototype.repeat) {
- String.prototype.repeat = function(count) {
- 'use strict';
- if (this == null) {
- throw new TypeError('can\'t convert ' + this + ' to object');
- }
- var str = '' + this;
- count = +count;
- if (count != count) {
- count = 0;
- }
- if (count &lt; 0) {
- throw new RangeError('repeat count must be non-negative');
- }
- if (count == Infinity) {
- throw new RangeError('repeat count must be less than infinity');
- }
- count = Math.floor(count);
- if (str.length == 0 || count == 0) {
- return '';
- }
- // Ensuring count is a 31-bit integer allows us to heavily optimize the
- // main part. But anyway, most current (August 2014) browsers can't handle
- // strings 1 &lt;&lt; 28 chars or longer, so:
- if (str.length * count &gt;= 1 &lt;&lt; 28) {
- throw new RangeError('repeat count must not overflow maximum string size');
- }
- var rpt = '';
- for (;;) {
- if ((count &amp; 1) == 1) {
- rpt += str;
- }
- count &gt;&gt;&gt;= 1;
- if (count == 0) {
- break;
- }
- str += str;
- }
- // Could we try:
- // return Array(count + 1).join(this);
- return rpt;
- }
-}
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-string.prototype.repeat', 'String.prototype.repeat')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td>Initial definition.</td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-string.prototype.repeat', 'String.prototype.repeat')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("41")}} </td>
- <td>{{CompatGeckoDesktop("24")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatSafari("9")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</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>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome("36")}}</td>
- <td>{{CompatGeckoMobile("24")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
diff --git a/files/pl/web/javascript/reference/global_objects/uint16array/index.html b/files/pl/web/javascript/reference/global_objects/uint16array/index.html
deleted file mode 100644
index 759ad9d56e..0000000000
--- a/files/pl/web/javascript/reference/global_objects/uint16array/index.html
+++ /dev/null
@@ -1,225 +0,0 @@
----
-title: Uint16Array
-slug: Web/JavaScript/Reference/Global_Objects/Uint16Array
-translation_of: Web/JavaScript/Reference/Global_Objects/Uint16Array
-original_slug: Web/JavaScript/Referencje/Obiekty/Uint16Array
----
-<div>{{JSRef("Global_Objects", "TypedArray", "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array")}}</div>
-
-<h2 id="Summary">Summary</h2>
-
-<p>The <strong><code>Uint16Array</code></strong> typed array represents an array of 16-bit unsigned integers in the platform byte order. If control over byte order is needed, use {{jsxref("DataView")}} instead. The contents are initialized to <code>0</code>. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).</p>
-
-<h2 id="Syntax">Syntax</h2>
-
-<pre class="syntaxbox">Uint16Array(length);
-Uint16Array(typedArray);
-Uint16Array(object);
-Uint16Array(buffer [, byteOffset [, length]]);</pre>
-
-<p>For more information about the constructor syntax and the parameters, see <em><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#Syntax">TypedArray</a></em>.</p>
-
-<h2 id="Properties">Properties</h2>
-
-<dl>
- <dt>{{jsxref("TypedArray.BYTES_PER_ELEMENT", "Uint16Array.BYTES_PER_ELEMENT")}}</dt>
- <dd>Returns a number value of the element size. <code>2</code> in the case of an <code>Uint16Array</code>.</dd>
- <dt>Uint16Array.length</dt>
- <dd>Length property whose value is 3.</dd>
- <dt>{{jsxref("TypedArray.name", "Uint16Array.name")}}</dt>
- <dd>Returns the string value of the constructor name. In the case of the <code>Uint16Array</code> type: "Uint16Array".</dd>
- <dt>{{jsxref("TypedArray.prototype", "Uint16Array.prototype")}}</dt>
- <dd>Prototype for the <em>TypedArray</em> objects.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<dl>
- <dt>{{jsxref("TypedArray.from", "Uint16Array.from()")}}</dt>
- <dd>Creates a new <code>Uint16Array</code> from an array-like or iterable object. See also {{jsxref("Array.from()")}}.</dd>
- <dt>{{jsxref("TypedArray.of", "Uint16Array.of()")}}</dt>
- <dd>Creates a new <code>Uint16Array</code> with a variable number of arguments. See also {{jsxref("Array.of()")}}.</dd>
-</dl>
-
-<h2 id="Boolean_instances" name="Boolean_instances"><code>Uint16Array</code> prototype</h2>
-
-<p>All <code>Uint16Array</code> objects inherit from {{jsxref("TypedArray.prototype", "%TypedArray%.prototype")}}.</p>
-
-<h3 id="Properties_2">Properties</h3>
-
-<dl>
- <dt><code>Uint16Array.prototype.constructor</code></dt>
- <dd>Returns the function that created an instance's prototype. This is the <code>Uint16Array</code> constructor by default.</dd>
- <dt>{{jsxref("TypedArray.prototype.buffer", "Uint16Array.prototype.buffer")}} {{readonlyInline}}</dt>
- <dd>Returns the {{jsxref("ArrayBuffer")}} referenced by the <code>Uint16Array</code> Fixed at construction time and thus <strong>read only</strong>.</dd>
- <dt>{{jsxref("TypedArray.prototype.byteLength", "Uint16Array.prototype.byteLength")}} {{readonlyInline}}</dt>
- <dd>Returns the length (in bytes) of the <code>Uint16Array</code> from the start of its {{jsxref("ArrayBuffer")}}. Fixed at construction time and thus <strong>read only.</strong></dd>
- <dt>{{jsxref("TypedArray.prototype.byteOffset", "Uint16Array.prototype.byteOffset")}} {{readonlyInline}}</dt>
- <dd>Returns the offset (in bytes) of the <code>Uint16Array</code> from the start of its {{jsxref("ArrayBuffer")}}. Fixed at construction time and thus <strong>read only.</strong></dd>
- <dt>{{jsxref("TypedArray.prototype.length", "Uint16Array.prototype.length")}} {{readonlyInline}}</dt>
- <dd>Returns the number of elements hold in the <code>Uint16Array</code>. Fixed at construction time and thus <strong>read only.</strong></dd>
-</dl>
-
-<h3 id="Methods_2">Methods</h3>
-
-<dl>
- <dt>{{jsxref("TypedArray.copyWithin", "Uint16Array.prototype.copyWithin()")}}</dt>
- <dd>Copies a sequence of array elements within the array. See also {{jsxref("Array.prototype.copyWithin()")}}.</dd>
- <dt>{{jsxref("TypedArray.entries", "Uint16Array.prototype.entries()")}}</dt>
- <dd>Returns a new <code>Array Iterator</code> object that contains the key/value pairs for each index in the array. See also {{jsxref("Array.prototype.entries()")}}.</dd>
- <dt>{{jsxref("TypedArray.every", "Uint16Array.prototype.every()")}}</dt>
- <dd>Tests whether all elements in the array pass the test provided by a function. See also {{jsxref("Array.prototype.every()")}}.</dd>
- <dt>{{jsxref("TypedArray.fill", "Uint16Array.prototype.fill()")}}</dt>
- <dd>Fills all the elements of an array from a start index to an end index with a static value. See also {{jsxref("Array.prototype.fill()")}}.</dd>
- <dt>{{jsxref("TypedArray.filter", "Uint16Array.prototype.filter()")}}</dt>
- <dd>Creates a new array with all of the elements of this array for which the provided filtering function returns true. See also {{jsxref("Array.prototype.filter()")}}.</dd>
- <dt>{{jsxref("TypedArray.find", "Uint16Array.prototype.find()")}}</dt>
- <dd>Returns the found value in the array, if an element in the array satisfies the provided testing function or <code>undefined</code> if not found. See also {{jsxref("Array.prototype.find()")}}.</dd>
- <dt>{{jsxref("TypedArray.findIndex", "Uint16Array.prototype.findIndex()")}}</dt>
- <dd>Returns the found index in the array, if an element in the array satisfies the provided testing function or -1 if not found. See also {{jsxref("Array.prototype.findIndex()")}}.</dd>
- <dt>{{jsxref("TypedArray.forEach", "Uint16Array.prototype.forEach()")}}</dt>
- <dd>Calls a function for each element in the array. See also {{jsxref("Array.prototype.forEach()")}}.</dd>
- <dt>{{jsxref("TypedArray.includes", "Uint16Array.prototype.includes()")}} {{experimental_inline}}</dt>
- <dd>Determines whether a typed array includes a certain element, returning <code>true</code> or <code>false</code> as appropriate. See also {{jsxref("Array.prototype.includes()")}}.</dd>
- <dt>{{jsxref("TypedArray.indexOf", "Uint16Array.prototype.indexOf()")}}</dt>
- <dd>Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also {{jsxref("Array.prototype.indexOf()")}}.</dd>
- <dt>{{jsxref("TypedArray.join", "Uint16Array.prototype.join()")}}</dt>
- <dd>Joins all elements of an array into a string. See also {{jsxref("Array.prototype.join()")}}.</dd>
- <dt>{{jsxref("TypedArray.keys", "Uint16Array.prototype.keys()")}}</dt>
- <dd>Returns a new <code>Array Iterator</code> that contains the keys for each index in the array. See also {{jsxref("Array.prototype.keys()")}}.</dd>
- <dt>{{jsxref("TypedArray.lastIndexOf", "Uint16Array.prototype.lastIndexOf()")}}</dt>
- <dd>Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also {{jsxref("Array.prototype.lastIndexOf()")}}.</dd>
- <dt>{{jsxref("TypedArray.map", "Uint16Array.prototype.map()")}}</dt>
- <dd>Creates a new array with the results of calling a provided function on every element in this array. See also {{jsxref("Array.prototype.map()")}}.</dd>
- <dt>{{jsxref("TypedArray.move", "Uint16Array.prototype.move()")}} {{non-standard_inline}} {{unimplemented_inline}}</dt>
- <dd>Former non-standard version of {{jsxref("TypedArray.copyWithin", "Uint16Array.prototype.copyWithin()")}}.</dd>
- <dt>{{jsxref("TypedArray.reduce", "Uint16Array.prototype.reduce()")}}</dt>
- <dd>Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also {{jsxref("Array.prototype.reduce()")}}.</dd>
- <dt>{{jsxref("TypedArray.reduceRight", "Uint16Array.prototype.reduceRight()")}}</dt>
- <dd>Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value. See also {{jsxref("Array.prototype.reduceRight()")}}.</dd>
- <dt>{{jsxref("TypedArray.reverse", "Uint16Array.prototype.reverse()")}}</dt>
- <dd>Reverses the order of the elements of an array — the first becomes the last, and the last becomes the first. See also {{jsxref("Array.prototype.reverse()")}}.</dd>
- <dt>{{jsxref("TypedArray.set", "Uint16Array.prototype.set()")}}</dt>
- <dd>Stores multiple values in the typed array, reading input values from a specified array.</dd>
- <dt>{{jsxref("TypedArray.slice", "Uint16Array.prototype.slice()")}}</dt>
- <dd>Extracts a section of an array and returns a new array. See also {{jsxref("Array.prototype.slice()")}}.</dd>
- <dt>{{jsxref("TypedArray.some", "Uint16Array.prototype.some()")}}</dt>
- <dd>Returns true if at least one element in this array satisfies the provided testing function. See also {{jsxref("Array.prototype.some()")}}.</dd>
- <dt>{{jsxref("TypedArray.sort", "Uint16Array.prototype.sort()")}}</dt>
- <dd>Sorts the elements of an array in place and returns the array. See also {{jsxref("Array.prototype.sort()")}}.</dd>
- <dt>{{jsxref("TypedArray.subarray", "Uint16Array.prototype.subarray()")}}</dt>
- <dd>Returns a new <code>Uint16Array</code> from the given start and end element index.</dd>
- <dt>{{jsxref("TypedArray.values", "Uint16Array.prototype.values()")}}</dt>
- <dd>Returns a new <code>Array Iterator</code> object that contains the values for each index in the array. See also {{jsxref("Array.prototype.values()")}}.</dd>
- <dt>{{jsxref("TypedArray.toLocaleString", "Uint16Array.prototype.toLocaleString()")}}</dt>
- <dd>Returns a localized string representing the array and its elements. See also {{jsxref("Array.prototype.toLocaleString()")}}.</dd>
- <dt>{{jsxref("TypedArray.toString", "Uint16Array.prototype.toString()")}}</dt>
- <dd>Returns a string representing the array and its elements. See also {{jsxref("Array.prototype.toString()")}}.</dd>
- <dt>{{jsxref("TypedArray.@@iterator", "Uint16Array.prototype[@@iterator]()")}}</dt>
- <dd>Returns a new <code>Array Iterator</code> object that contains the values for each index in the array.</dd>
-</dl>
-
-<h2 id="Examples">Examples</h2>
-
-<pre class="brush: js">// From a length
-var uint16 = new Uint16Array(2);
-uint16[0] = 42;
-console.log(uint16[0]); // 42
-console.log(uint16.length); // 2
-console.log(uint16.BYTES_PER_ELEMENT); // 2
-
-// From an array
-var arr = new Uint16Array([21,31]);
-console.log(arr[1]); // 31
-
-// From another TypedArray
-var x = new Uint16Array([21, 31]);
-var y = new Uint16Array(x);
-console.log(y[0]); // 21
-
-// From an ArrayBuffer
-var buffer = new ArrayBuffer(8);
-var z = new Uint16Array(buffer, 0, 4);
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td><a href="https://www.khronos.org/registry/typedarray/specs/latest/#7">Typed Array Specification</a></td>
- <td>Obsolete</td>
- <td><span><span>Superseded by ECMAScript 6.</span></span></td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#table-45', 'TypedArray constructors')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td>Initial definition in an ECMA standard.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</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>Basic support</td>
- <td>4.0</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatGeckoMobile("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/JavaScript/Typed_arrays" title="en/JavaScript typed arrays">JavaScript typed arrays</a></li>
- <li>{{jsxref("ArrayBuffer")}}</li>
- <li>{{jsxref("DataView")}}</li>
-</ul>
diff --git a/files/pl/web/javascript/reference/operators/instanceof/index.html b/files/pl/web/javascript/reference/operators/instanceof/index.html
deleted file mode 100644
index bd98d29e0f..0000000000
--- a/files/pl/web/javascript/reference/operators/instanceof/index.html
+++ /dev/null
@@ -1,169 +0,0 @@
----
-title: Operator instanceof
-slug: Web/JavaScript/Reference/Operators/instanceof
-tags:
- - Dokumentacja_JavaScript
- - Dokumentacje
- - JavaScript
- - Strony_wymagające_dopracowania
- - Wszystkie_kategorie
-translation_of: Web/JavaScript/Reference/Operators/instanceof
-original_slug: Web/JavaScript/Referencje/Operatory/Operator_instanceof
----
-<div>{{jsSidebar("Operators")}}</div>
-
-<p><strong>Operator</strong> <strong><code>instanceof</code> </strong>sprawdza czy właściwość konstruktora <code>prototype</code> pojawia się gdziekolwiek w łańcuchu prototypowym obiektu.</p>
-
-<p>{{EmbedInteractiveExample("pages/js/expressions-instanceof.html")}}</p>
-
-
-
-<h2 id="Składnia">Składnia</h2>
-
-<pre class="syntaxbox"><em>object</em> instanceof <em>constructor</em></pre>
-
-<dl>
- <dt>
- <h3 id="Parametry">Parametry</h3>
- <code>object</code></dt>
- <dd>Obiekt do testowania.</dd>
-</dl>
-
-<dl>
- <dt><code>constructor</code></dt>
- <dd>Funkcja przeciwko której testujemy.</dd>
-</dl>
-
-<h2 id="Opis">Opis</h2>
-
-<p>Operator <code>instanceof</code> sprawdza obecność <code>constructor.prototype</code> w łańcuchu prototypowym obiektu <code>object</code></p>
-
-<pre class="brush: js">// definiowanie konstruktorów
-function C() {}
-function D() {}
-
-var o = new C();
-
-// true, ponieważ: Object.getPrototypeOf(o) === C.prototype
-o instanceof C;
-
-// false, ponieważ D.prototype nie występuje w łańcuchu prototypowym o.
-o instanceof D;
-
-o instanceof Object; // true, ponieważ:
-C.prototype instanceof Object // true
-
-C.prototype = {};
-var o2 = new C();
-
-o2 instanceof C; // true
-
-// false, ponieważ C.prototype nie ma już w łańcuchu prototypowym o
-o instanceof C;
-
-D.prototype = new C(); // add C to [[Prototype]] linkage of D
-var o3 = new D();
-o3 instanceof D; // true
-o3 instanceof C; // true since C.prototype is now in o3's prototype chain
-</pre>
-
-<p>Note that the value of an <code>instanceof</code> test can change based on changes to the <code>prototype</code> property of constructors, and it can also be changed by changing an object prototype using <code>Object.setPrototypeOf</code>. It is also possible using the non-standard <code>__proto__</code> pseudo-property.</p>
-
-<h3 id="instanceof_and_multiple_context_(e.g._frames_or_windows)"><code>instanceof</code> and multiple context (e.g. frames or windows)</h3>
-
-<p>Different scopes have different execution environments. This means that they have different built-ins (different global object, different constructors, etc.). This may result in unexpected results. For instance, <code>[] instanceof window.frames[0].Array</code> will return <code>false</code>, because <code>Array.prototype !== </code><code>window.frames[0].Array</code> and arrays inherit from the former.</p>
-
-<p>This may not make sense at first but when you start dealing with multiple frames or windows in your script and pass objects from one context to another via functions, this will be a valid and strong issue. For instance, you can securely check if a given object is, in fact, an Array using <code>Array.isArray(myObj)</code></p>
-
-<p>For example checking if a <a href="/en-US/docs/Web/API/Node">Nodes</a> is a <a href="/en-US/docs/Web/API/SVGElement">SVGElement</a> in a different context you can use <code>myNode instanceof myNode.ownerDocument.defaultView.SVGElement</code></p>
-
-<div class="note"><strong>Note for Mozilla developers:</strong><br>
-In code using XPCOM <code>instanceof</code> has special effect: <code>obj instanceof </code><em><code>xpcomInterface</code></em> (e.g. <code>Components.interfaces.nsIFile</code>) calls <code>obj.QueryInterface(<em>xpcomInterface</em>)</code> and returns <code>true</code> if QueryInterface succeeded. A side effect of such call is that you can use <em><code>xpcomInterface</code></em>'s properties on <code>obj</code> after a successful <code>instanceof</code> test. Unlike standard JavaScript globals, the test <code>obj instanceof xpcomInterface</code> works as expected even if <code>obj</code> is from a different scope.</div>
-
-<h2 id="Examples">Examples</h2>
-
-<h3 id="Demonstrating_that_String_and_Date_are_of_type_Object_and_exceptional_cases">Demonstrating that <code>String</code> and <code>Date</code> are of type <code>Object</code> and exceptional cases</h3>
-
-<p>The following code uses <code>instanceof</code> to demonstrate that <code>String</code> and <code>Date</code> objects are also of type <code>Object</code> (they are derived from <code>Object</code>).</p>
-
-<p>However, objects created with the object literal notation are an exception here: Although the prototype is undefined, <code>instanceof Object</code> returns <code>true</code>.</p>
-
-<pre class="brush: js">var simpleStr = 'This is a simple string';
-var myString = new String();
-var newStr = new String('String created with constructor');
-var myDate = new Date();
-var myObj = {};
-
-simpleStr instanceof String; // returns false, checks the prototype chain, finds undefined
-myString instanceof String; // returns true
-newStr instanceof String; // returns true
-myString instanceof Object; // returns true
-
-myObj instanceof Object; // returns true, despite an undefined prototype
-({}) instanceof Object; // returns true, same case as above
-
-myString instanceof Date; // returns false
-
-myDate instanceof Date; // returns true
-myDate instanceof Object; // returns true
-myDate instanceof String; // returns false
-</pre>
-
-<h3 id="Demonstrating_that_mycar_is_of_type_Car_and_type_Object">Demonstrating that <code>mycar</code> is of type <code>Car</code> and type <code>Object</code></h3>
-
-<p>The following code creates an object type <code>Car</code> and an instance of that object type, <code>mycar</code>. The <code>instanceof</code> operator demonstrates that the <code>mycar</code> object is of type <code>Car</code> and of type <code>Object</code>.</p>
-
-<pre class="brush: js">function Car(make, model, year) {
- this.make = make;
- this.model = model;
- this.year = year;
-}
-var mycar = new Car('Honda', 'Accord', 1998);
-var a = mycar instanceof Car; // returns true
-var b = mycar instanceof Object; // returns true
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-relational-operators', 'Relational Operators')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-relational-operators', 'Relational Operators')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-11.8.6', 'The instanceof operator')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES3', '#sec-11.8.6', 'The instanceof operator')}}</td>
- <td>{{Spec2('ES3')}}</td>
- <td>Initial definition. Implemented in JavaScript 1.4.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("javascript.operators.instanceof")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Operators/typeof" title="/en-US/docs/JavaScript/Reference/Operators/typeof">typeof</a></code></li>
- <li>{{jsxref("Symbol.hasInstance")}}</li>
-</ul>
diff --git a/files/pl/web/javascript/reference/operators/this/index.html b/files/pl/web/javascript/reference/operators/this/index.html
deleted file mode 100644
index 427d3f843e..0000000000
--- a/files/pl/web/javascript/reference/operators/this/index.html
+++ /dev/null
@@ -1,347 +0,0 @@
----
-title: this
-slug: Web/JavaScript/Reference/Operators/this
-translation_of: Web/JavaScript/Reference/Operators/this
-original_slug: Web/JavaScript/Referencje/Operatory/this
----
-<div>
-<div>{{jsSidebar("Operators")}}</div>
-</div>
-
-<h2 id="Summary">Summary</h2>
-
-<p>W JavaScript słówko kluczowe <code>this</code> zachowuje się nieco inaczej w porównaniu do innych języków programowania. Istnieje również kilka różnic między trybem <a href="/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode">strict mode</a> oraz non-strict mode.</p>
-
-<p>W większości przypadków wartość <code>this</code> jest ustalana na podstawie tego, jak wywołana została dana funkcja. Wartość ta nie może być przypisana podczas wykonywania się funkcji i może być inna za każdym wywołaniem. ES5 wprowadziło metodę <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind">bind</a></code> dzięki której <a href="#The_bind_method">możemy przypisać wartość <code>this</code> w funkcji, niezależnie od tego jak została ona wywołana.</a></p>
-
-<h2 id="Syntax">Syntax</h2>
-
-<pre class="syntaxbox">this</pre>
-
-<h2 id="Global_context">Global context</h2>
-
-<p>In the global execution context (outside of any function), <code>this</code> refers to the global object, whether in strict mode or not.</p>
-
-<pre class="brush:js">console.log(this.document === document); // true
-
-// In web browsers, the window object is also the global object:
-console.log(this === window); // true
-
-this.a = 37;
-console.log(window.a); // 37
-</pre>
-
-<h2 id="Function_context">Function context</h2>
-
-<p>Inside a function, the value of <code>this</code> depends on how the function is called.</p>
-
-<h3 id="Simple_call">Simple call</h3>
-
-<pre class="brush:js">function f1(){
- return this;
-}
-
-f1() === window; // global object
-</pre>
-
-<p>In this case, the value of <code>this</code> is not set by the call. Since the code is not in strict mode, the value of <code>this</code> must always be an object so it defaults to the global object.</p>
-
-<pre class="brush:js">function f2(){
- "use strict"; // see strict mode
- return this;
-}
-
-f2() === undefined;
-</pre>
-
-<p>In strict mode, the value of <code>this</code> remains at whatever it's set to when entering the execution context. If it's not defined, it remains undefined. It can also be set to any value, such as <code>null</code> or <code>42</code> or <code>"I am not this"</code>.</p>
-
-<div class="note"><strong>Note:</strong> In the second example, <code>this</code> should be <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined"><code>undefined</code></a>, because <code>f2</code> was called without providing any base (e.g. <code>window.f2()</code>). This feature wasn't implemented in some browsers when they first started to support <a href="/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode" title="Strict mode">strict mode</a>. As a result, they incorrectly returned the <code>window</code> object.</div>
-
-<h3 id="As_an_object_method">As an object method</h3>
-
-<p>When a function is called as a method of an object, its <code>this</code> is set to the object the method is called on.</p>
-
-<p>In the following example, when <code>o.f()</code> is invoked, inside the function <code>this</code> is bound to the <code>o</code> object.</p>
-
-<pre class="brush:js">var o = {
- prop: 37,
- f: function() {
- return this.prop;
- }
-};
-
-console.log(o.f()); // logs 37
-</pre>
-
-<p>Note that this behavior is not at all affected by how or where the function was defined. In the previous example, we defined the function inline as the <code>f</code> member during the definition of <code>o</code>. However, we could have just as easily defined the function first and later attached it to <code>o.f</code>. Doing so results in the same behavior:</p>
-
-<pre class="brush:js">var o = {prop: 37};
-
-function independent() {
- return this.prop;
-}
-
-o.f = independent;
-
-console.log(o.f()); // logs 37
-</pre>
-
-<p>This demonstrates that it matters only that the function was invoked from the <code>f</code> member of <code>o</code>.</p>
-
-<p>Similarly, the <code>this</code> binding is only affected by the most immediate member reference. In the following example, when we invoke the function, we call it as a method <code>g</code> of the object <code>o.b</code>. This time during execution, <code>this</code> inside the function will refer to <code>o.b</code>. The fact that the object is itself a member of <code>o</code> has no consequence; the most immediate reference is all that matters.</p>
-
-<pre class="brush:js">o.b = {g: independent, prop: 42};
-console.log(o.b.g()); // logs 42
-</pre>
-
-<h4 id="this_on_the_objects_prototype_chain"><code>this</code> on the object's prototype chain</h4>
-
-<p>The same notion holds true for methods defined somewhere on the object's prototype chain. If the method is on an object's prototype chain, <code>this</code> refers to the object the method was called on, as if the method was on the object.</p>
-
-<pre class="brush:js">var o = {f:function(){ return this.a + this.b; }};
-var p = Object.create(o);
-p.a = 1;
-p.b = 4;
-
-console.log(p.f()); // 5
-</pre>
-
-<p>In this example, the object assigned to the variable <code>p</code> doesn't have its own <code>f</code> property, it inherits it from its prototype. But it doesn't matter that the lookup for <code>f</code> eventually finds a member with that name on <code>o</code>; the lookup began as a reference to <code>p.f</code>, so <code>this</code> inside the function takes the value of the object referred to as <code>p</code>. That is, since <code>f</code> is called as a method of <code>p</code>, its <code>this</code> refers to <code>p</code>. This is an interesting feature of JavaScript's prototype inheritance.</p>
-
-<h4 id="this_with_a_getter_or_setter"><code>this</code> with a getter or setter</h4>
-
-<p>Again, the same notion holds true when a function is invoked from a getter or a setter. A function used as getter or setter has its <code>this</code> bound to the object from which the property is being set or gotten.</p>
-
-<pre class="brush:js">function modulus(){
- return Math.sqrt(this.re * this.re + this.im * this.im);
-}
-
-var o = {
- re: 1,
- im: -1,
- get phase(){
- return Math.atan2(this.im, this.re);
- }
-};
-
-Object.defineProperty(o, 'modulus', {
- get: modulus, enumerable:true, configurable:true});
-
-console.log(o.phase, o.modulus); // logs -0.78 1.4142
-</pre>
-
-<h3 id="As_a_constructor">As a constructor</h3>
-
-<p>When a function is used as a constructor (with the <code><a href="/en-US/docs/Web/JavaScript/Reference/Operators/new">new</a></code> keyword), its <code>this</code> is bound to new object being constructed.</p>
-
-<p>Note: while the default for a constructor is to return the object referenced by <code>this</code>, it can instead return some other object (if the return value isn't an object, then the <code>this</code> object is returned).</p>
-
-<pre class="brush:js">/*
- * Constructors work like this:
- *
- * function MyConstructor(){
- * // Actual function body code goes here.
- * // Create properties on |this| as
- * // desired by assigning to them. E.g.,
- * this.fum = "nom";
- * // et cetera...
- *
- * // If the function has a return statement that
- * // returns an object, that object will be the
- * // result of the |new| expression. Otherwise,
- * // the result of the expression is the object
- * // currently bound to |this|
- * // (i.e., the common case most usually seen).
- * }
- */
-
-function C(){
- this.a = 37;
-}
-
-var o = new C();
-console.log(o.a); // logs 37
-
-
-function C2(){
- this.a = 37;
- return {a:38};
-}
-
-o = new C2();
-console.log(o.a); // logs 38
-</pre>
-
-<p>In the last example (<code>C2</code>), because an object was returned during construction, the new object that <code>this</code> was bound to simply gets discarded. (This essentially makes the statement "<code>this.a = 37;</code>" dead code. It's not exactly dead, because it gets executed, but it can be eliminated with no outside effects.)</p>
-
-<h3 id="call_and_apply"><code>call</code> and <code>apply</code></h3>
-
-<p>Where a function uses the <code>this</code> keyword in its body, its value can be bound to a particular object in the call using the <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call">call</a></code> or <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply">apply</a></code> methods that all functions inherit from <code>Function.prototype</code>.</p>
-
-<pre class="brush:js">function add(c, d){
- return this.a + this.b + c + d;
-}
-
-var o = {a:1, b:3};
-
-// The first parameter is the object to use as
-// 'this', subsequent parameters are passed as
-// arguments in the function call
-add.call(o, 5, 7); // 1 + 3 + 5 + 7 = 16
-
-// The first parameter is the object to use as
-// 'this', the second is an array whose
-// members are used as the arguments in the function call
-add.apply(o, [10, 20]); // 1 + 3 + 10 + 20 = 34
-</pre>
-
-<p>Note that with <code>call</code> and <code>apply</code>, if the value passed as <code>this</code> is not an object, an attempt will be made to convert it to an object using the internal <code>ToObject</code> operation. So if the value passed is a primitive like <code>7</code> or <code>'foo'</code>, it will be converted to an Object using the related constructor, so the primitive number <code>7</code> is converted to an object as if by <code>new Number(7)</code> and the string <code>'foo'</code> to an object as if by <code>new String('foo'), e.g.</code></p>
-
-<pre class="brush:js">function bar() {
- console.log(Object.prototype.toString.call(this));
-}
-
-bar.call(7); // [object Number]
-</pre>
-
-<h3 id="The_bind_method">The <code>bind</code> method</h3>
-
-<p>ECMAScript 5 introduced <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind">Function.prototype.bind</a></code>. Calling <code>f.bind(someObject)</code> creates a new function with the same body and scope as <code>f</code>, but where <code>this</code> occurs in the original function, in the new function it is permanently bound to the first argument of <code>bind</code>, regardless of how the function is being used.</p>
-
-<pre class="brush:js">function f(){
- return this.a;
-}
-
-var g = f.bind({a:"azerty"});
-console.log(g()); // azerty
-
-var o = {a:37, f:f, g:g};
-console.log(o.f(), o.g()); // 37, azerty
-</pre>
-
-<h3 id="As_a_DOM_event_handler">As a DOM event handler</h3>
-
-<p>When a function is used as an event handler, its <code>this</code> is set to the element the event fired from (some browsers do not follow this convention for listeners added dynamically with methods other than <code>addEventListener</code>).</p>
-
-<pre class="brush:js">// When called as a listener, turns the related element blue
-function bluify(e){
- // Always true
- console.log(this === e.currentTarget);
- // true when currentTarget and target are the same object
- console.log(this === e.target);
- this.style.backgroundColor = '#A5D9F3';
-}
-
-// Get a list of every element in the document
-var elements = document.getElementsByTagName('*');
-
-// Add bluify as a click listener so when the
-// element is clicked on, it turns blue
-for(var i=0 ; i&lt;elements.length ; i++){
- elements[i].addEventListener('click', bluify, false);
-}</pre>
-
-<h3 id="In_an_in–line_event_handler">In an in–line event handler</h3>
-
-<p>When code is called from an in–line handler, its <code>this</code> is set to the DOM element on which the listener is placed:</p>
-
-<pre class="brush:js">&lt;button onclick="alert(this.tagName.toLowerCase());"&gt;
- Show this
-&lt;/button&gt;
-</pre>
-
-<p>The above alert shows <code>button</code>. Note however that only the outer code has its <code>this</code> set this way:</p>
-
-<pre class="brush:js">&lt;button onclick="alert((function(){return this}()));"&gt;
- Show inner this
-&lt;/button&gt;
-</pre>
-
-<p>In this case, the inner function's <code>this</code> isn't set so it returns the global/window object (i.e. the default object in non–strict mode where <code>this</code> isn't set by the call).</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>ECMAScript 1st Edition.</td>
- <td>Standard</td>
- <td>Initial definition. Implemented in JavaScript 1.0</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-11.1.1', 'The this keyword')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-this-keyword', 'The this keyword')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</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>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also" name="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode">Strict mode</a></li>
- <li><a href="http://bjorn.tipling.com/all-this">All this</a>, an article about <code>this</code> in different contexts</li>
-</ul>
diff --git a/files/pl/web/javascript/reference/statements/throw/index.html b/files/pl/web/javascript/reference/statements/throw/index.html
deleted file mode 100644
index d47ab9803b..0000000000
--- a/files/pl/web/javascript/reference/statements/throw/index.html
+++ /dev/null
@@ -1,198 +0,0 @@
----
-title: throw
-slug: Web/JavaScript/Reference/Statements/throw
-tags:
- - Dokumentacja_JavaScript
- - Dokumentacje
- - JavaScript
- - Strony_wymagające_dopracowania
- - Wszystkie_kategorie
-translation_of: Web/JavaScript/Reference/Statements/throw
-original_slug: Web/JavaScript/Referencje/Polecenia/throw
----
-<div>{{jsSidebar("Statements")}}</div>
-
-<p>The <strong><code>throw</code> statement</strong> throws a user-defined exception. Execution of the current function will stop (the statements after <code>throw</code> won't be executed), and control will be passed to the first <a href="/en-US/docs/Web/JavaScript/Reference/Statements/try...catch"><code>catch</code></a> block in the call stack. If no <code>catch</code> block exists among caller functions, the program will terminate.</p>
-
-<div>{{EmbedInteractiveExample("pages/js/statement-throw.html")}}</div>
-
-
-<h2 id="Syntax">Syntax</h2>
-
-<pre class="syntaxbox">throw <em>expression</em>; </pre>
-
-<dl>
- <dt><code>expression</code></dt>
- <dd>The expression to throw.</dd>
-</dl>
-
-<h2 id="Description">Description</h2>
-
-<p>Use the <code>throw</code> statement to throw an exception. When you throw an exception, <code>expression</code> specifies the value of the exception. Each of the following throws an exception:</p>
-
-<pre class="brush: js">throw 'Error2'; // generates an exception with a string value
-throw 42; // generates an exception with the value 42
-throw true; // generates an exception with the value true</pre>
-
-<p>Also note that the <code>throw</code> statement is affected by <a href="/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Automatic_semicolon_insertion">automatic semicolon insertion (ASI)</a> as no line terminator between the <code>throw</code> keyword and the expression is allowed.</p>
-
-<h2 id="Examples">Examples</h2>
-
-<h3 id="Throw_an_object">Throw an object</h3>
-
-<p>You can specify an object when you throw an exception. You can then reference the object's properties in the <code>catch</code> block. The following example creates an object of type <code>UserException</code> and uses it in a <code>throw</code> statement.</p>
-
-<pre class="brush: js">function UserException(message) {
- this.message = message;
- this.name = 'UserException';
-}
-function getMonthName(mo) {
- mo = mo - 1; // Adjust month number for array index (1 = Jan, 12 = Dec)
- var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul',
- 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
- if (months[mo] !== undefined) {
- return months[mo];
- } else {
- throw new UserException('InvalidMonthNo');
- }
-}
-
-try {
- // statements to try
- var myMonth = 15; // 15 is out of bound to raise the exception
- var monthName = getMonthName(myMonth);
-} catch (e) {
- monthName = 'unknown';
- console.log(e.message, e.name); // pass exception object to err handler
-}
-</pre>
-
-<h3 id="Another_example_of_throwing_an_object">Another example of throwing an object</h3>
-
-<p>The following example tests an input string for a U.S. zip code. If the zip code uses an invalid format, the throw statement throws an exception by creating an object of type <code>ZipCodeFormatException</code>.</p>
-
-<pre class="brush: js">/*
- * Creates a ZipCode object.
- *
- * Accepted formats for a zip code are:
- * 12345
- * 12345-6789
- * 123456789
- * 12345 6789
- *
- * If the argument passed to the ZipCode constructor does not
- * conform to one of these patterns, an exception is thrown.
- */
-
-function ZipCode(zip) {
- zip = new String(zip);
- pattern = /[0-9]{5}([- ]?[0-9]{4})?/;
- if (pattern.test(zip)) {
- // zip code value will be the first match in the string
- this.value = zip.match(pattern)[0];
- this.valueOf = function() {
- return this.value
- };
- this.toString = function() {
- return String(this.value)
- };
- } else {
- throw new ZipCodeFormatException(zip);
- }
-}
-
-function ZipCodeFormatException(value) {
- this.value = value;
- this.message = 'does not conform to the expected format for a zip code';
- this.toString = function() {
- return this.value + this.message;
- };
-}
-
-/*
- * This could be in a script that validates address data
- * for US addresses.
- */
-
-const ZIPCODE_INVALID = -1;
-const ZIPCODE_UNKNOWN_ERROR = -2;
-
-function verifyZipCode(z) {
- try {
- z = new ZipCode(z);
- } catch (e) {
- if (e instanceof ZipCodeFormatException) {
- return ZIPCODE_INVALID;
- } else {
- return ZIPCODE_UNKNOWN_ERROR;
- }
- }
- return z;
-}
-
-a = verifyZipCode(95060); // returns 95060
-b = verifyZipCode(9560); // returns -1
-c = verifyZipCode('a'); // returns -1
-d = verifyZipCode('95060'); // returns 95060
-e = verifyZipCode('95060 1234'); // returns 95060 1234
-</pre>
-
-<h3 id="Rethrow_an_exception">Rethrow an exception</h3>
-
-<p>You can use <code>throw</code> to rethrow an exception after you catch it. The following example catches an exception with a numeric value and rethrows it if the value is over 50. The rethrown exception propagates up to the enclosing function or to the top level so that the user sees it.</p>
-
-<pre class="brush: js">try {
- throw n; // throws an exception with a numeric value
-} catch (e) {
- if (e &lt;= 50) {
- // statements to handle exceptions 1-50
- } else {
- // cannot handle this exception, so rethrow
- throw e;
- }
-}
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('ES3')}}</td>
- <td>{{Spec2('ES3')}}</td>
- <td>Initial definition. Implemented in JavaScript 1.4</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-12.13', 'throw statement')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-throw-statement', 'throw statement')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-throw-statement', 'throw statement')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("javascript.statements.throw")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/JavaScript/Reference/Statements/try...catch"><code>try...catch</code></a></li>
-</ul>
diff --git a/files/pl/web/javascript/typed_arrays/index.html b/files/pl/web/javascript/typed_arrays/index.html
deleted file mode 100644
index b36127886f..0000000000
--- a/files/pl/web/javascript/typed_arrays/index.html
+++ /dev/null
@@ -1,274 +0,0 @@
----
-title: Tablice reprezentujące typy JavaScript
-slug: Web/JavaScript/Typed_arrays
-translation_of: Web/JavaScript/Typed_arrays
----
-<div>
-<div>{{JsSidebar("Advanced")}}</div>
-</div>
-
-<p>Jako, że aplikacje internetowe stają się coraz bardziej potężne, zapewniając takie możliwości jak chociażby manipulacja audio i wideo, dostęp do surowych danych używając WebSocket, i tak dalej, stało się jasne, że są sytuacje, w których przydałoby się, żeby kod JavaScript był w stanie szybko i łatwo manipulować surowymi danymi binarnymi. W przeszłości, musiało być to symulowane przez traktowanie surowych danych jako <a href="/en-US/docs/JavaScript/Reference/Global_Objects/String" title="JavaScript/Reference/Global Objects/String">string</a> i używanie metody <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/String/charCodeAt" title="JavaScript/Reference/Global Objects/String/charCodeAt">charCodeAt()</a>,</code> aby przeczytać bajty z buforu danych.</p>
-
-<p>Jakkolwiek, jest to wolne i podatne na błędy, ze względu na potrzebę wielu konwersji (szczególnie jeśli dane binarne nie są tak naprawdę danymi w formacie bajtów, ale, na przykład, 32-bitowymi liczbami całkowitymi lub zmiennoprzecinkowymi).</p>
-
-<p>Tablice zawierające typy JavaScript zapewniają mechanizm dostępu do danych binarnych dużo bardziej wydajnie.</p>
-
-<table class="topicpage-table">
- <tbody>
- <tr>
- <td>
- <h2 class="Documentation" id="Documentation" name="Documentation">Dokumentacja</h2>
-
- <dl>
- <dt><a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer" title="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a></dt>
- <dd>The <code>ArrayBuffer</code> is a data type that is used to represent a generic, fixed-length binary data buffer. You can't directly manipulate the contents of an <code>ArrayBuffer</code>; instead, you create an <a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView" title="en/JavaScript typed arrays/ArrayBufferView"><code>ArrayBufferView</code></a> object which represents the buffer in a specific format, and use that to read and write the contents of the buffer.</dd>
- <dt><a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView" title="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView"><code>ArrayBufferView</code></a></dt>
- <dd>The <code>ArrayBufferView</code> type describes a particular view on the contents of an <a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer" title="en/JavaScript typed arrays/ArrayBuffer">ArrayBuffer</a>'s data. Of note is that you may create multiple views into the same buffer, each looking at the buffer's contents starting at a particular offset. This makes it possible to set up views of different data types to read the contents of a buffer based on the types of data at specific offsets into the buffer</dd>
- <dt><a href="/en-US/docs/Web/JavaScript/Typed_arrays/DataView" title="/en-US/docs/Web/JavaScript/Typed_arrays/DataView"><code>DataView</code></a></dt>
- <dd>
- <p>The <code>DataView</code> view provides a low-level interface for reading data from and writing it to an <code><a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer" title="en/JavaScript_typed_arrays/ArrayBuffer">ArrayBuffer</a></code>.</p>
- </dd>
- <dt><a href="/en-US/docs/Web/JavaScript/Typed_arrays/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code></a> <span class="inlineIndicator" style="font-weight: normal;" title="This API is not native.">Non native</span></dt>
- <dd>In this article is published a library of ours whose aims are:
- <ul>
- <li>creating a <strong><a href="http://en.wikipedia.org/wiki/C_%28programming_language%29">C</a>-like interface for strings</strong> (i.e. array of characters codes — an<a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView"> <code>ArrayBufferView</code></a> in JavaScript) based upon the JavaScript <a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a> interface,</li>
- <li>creating an <strong>highly scalable</strong> library, that anyone can extend by adding methods to the object <code>StringView.prototype</code>,</li>
- <li>creating a collection of methods for such string-like objects (since now: <code>stringView</code>s) which <strong>work strictly on arrays of numbers</strong> rather than on creating new immutable JavaScript strings,</li>
- <li><strong>working with other Unicode encodings</strong> different from default JavaScript's UTF-16 {{domxref("DOMString")}}s,</li>
- </ul>
- </dd>
- <dt><a href="/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding#Appendix.3A_Decode_a_Base64_string_to_Uint8Array_or_ArrayBuffer" title="/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding#Appendix.3A_Decode_a_Base64_string_to_Uint8Array_or_ArrayBuffer">Getting <code>ArrayBuffer</code>s or typed arrays from <em>Base64</em>-encoded strings</a></dt>
- <dd>Code snippets to get <code>ArrayBuffer</code>s or typed arrays from <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding" title="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding"><em>Base64</em>-encoded</a> strings.</dd>
- <dt><a href="/en-US/docs/Web/API/FileReader#readAsArrayBuffer()" title="/en-US/docs/Web/API/FileReader#readAsArrayBuffer()"><code>FileReader.prototype.readAsArrayBuffer()</code></a></dt>
- <dd>The <code>FileReader.prototype.readAsArrayBuffer()</code> method starts reading the contents of the specified <a href="/en-US/docs/Web/API/Blob" title="/en-US/docs/DOM/Blob"><code>Blob</code></a> or <a href="/en-US/docs/Web/API/File" title="/en-US/docs/DOM/File"><code>File</code></a>.</dd>
- <dt><a href="/en-US/docs/Web/API/XMLHttpRequest#send()" title="/en-US/docs/Web/API/XMLHttpRequest#send()"><code>XMLHttpRequest.prototype.send()</code></a></dt>
- <dd><code>XMLHttpRequest</code> instances' <code>send()</code> method now supports typed arrays and <a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer" title="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a>s as argument.</dd>
- </dl>
-
- </td>
- <td>
- <h2 class="Community" id="Community" name="Community">Społeczność</h2>
-
- <ul>
- <li>Zobacz forum Mozilla... {{ DiscussionList("dev-web-development", "mozilla.dev.web.development") }}</li>
- </ul>
-
- <h2 class="Tools" id="Tools" name="Tools">Narzędzia</h2>
-
- <ul>
- <li><a href="/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding#Appendix.3A_Decode_a_Base64_string_to_Uint8Array_or_ArrayBuffer" title="/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding#Appendix.3A_Decode_a_Base64_string_to_Uint8Array_or_ArrayBuffer">Getting <code>ArrayBuffer</code>s or typed arrays from <em>Base64</em>-encoded strings</a></li>
- <li><a href="/en-US/docs/Code_snippets/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code> – a C-like representation of strings based on typed arrays</a></li>
- </ul>
-
- <h2 class="Related_Topics" id="Related_Topics" name="Related_Topics">Powiązane tematy</h2>
-
- <ul>
- <li><a href="/en-US/docs/Web/API/File" title="/en-US/docs/DOM/File"><code>File</code></a></li>
- <li><code><a href="/en-US/docs/Web/API/Blob" title="/en-US/docs/DOM/Blob">Blob</a></code></li>
- </ul>
- </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Bufory_i_widoki_struktura_tablic_reprezentujących_typy">Bufory i widoki: struktura tablic reprezentujących typy</h2>
-
-<p>To achieve maximum flexibility and efficiency, JavaScript typed arrays split the implementation into a <strong>buffer</strong> and a <strong>view</strong>. A buffer (implemented by the <a href="/en-US/docs/JavaScript_typed_arrays/ArrayBuffer" title="JavaScript typed arrays/ArrayBuffer"><code>ArrayBuffer</code></a> class) is an object representing a chunk of data; it has no format to speak of, and offers no mechanism for accessing its contents. In order to access the memory contained in a buffer, you need to use a view. A view provides a context—that is, a data type, starting offset, and number of elements—that turns the data into an actual typed array. Views are implemented by the <a href="/en-US/docs/JavaScript_typed_arrays/ArrayBufferView" title="JavaScript typed arrays/ArrayBufferView"><code>ArrayBufferView</code></a> class and its subclasses.</p>
-
-<h2 id="Podklasy_tablic_reprezentujących_typy">Podklasy tablic reprezentujących typy</h2>
-
-<p>The following subclasses provide buffer views allowing access to the data in specific data types. Note that the classes that work with more than one byte (e.g. Int16Array) use the platform byte order. If control over byte order is needed, use DataView instead.</p>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <td class="header">Typ</td>
- <td class="header">Rozmiar</td>
- <td class="header">Opis</td>
- <td class="header">Odpowiednik C</td>
- </tr>
- <tr>
- <td><a href="/en/JavaScript_typed_arrays/Int8Array" title="en/JavaScript typed arrays/Int8Array"><code>Int8Array</code></a></td>
- <td>1</td>
- <td>8-bitowa liczba całkowita ze znakiem w zapisie dopełnienia do dwóch</td>
- <td><code>signed char</code></td>
- </tr>
- <tr>
- <td><code><a href="/en/JavaScript_typed_arrays/Uint8Array" title="en/JavaScript typed arrays/Uint8Array">Uint8Array</a></code></td>
- <td>1</td>
- <td>8-bitowa liczba całkowita bez znaku</td>
- <td><code>unsigned char</code></td>
- </tr>
- <tr>
- <td><a href="/en-US/docs/JavaScript/Typed_arrays/Uint8ClampedArray" title="/en-US/docs/JavaScript/Typed_arrays/Uint8ClampedArray"><code>Uint8ClampedArray</code></a></td>
- <td>1</td>
- <td>8-bitowa liczba całkowita bez znaku</td>
- <td><code>unsigned char</code></td>
- </tr>
- <tr>
- <td><code><a href="/en/JavaScript_typed_arrays/Int16Array" title="en/JavaScript typed arrays/Int16Array">Int16Array</a></code></td>
- <td>2</td>
- <td>16-bitowa liczba całkowita ze znakiem w zapisie dopełnienia do dwóch</td>
- <td><code>short</code></td>
- </tr>
- <tr>
- <td><code><a href="/en/JavaScript_typed_arrays/Uint16Array" title="en/JavaScript typed arrays/Uint16Array">Uint16Array</a></code></td>
- <td>2</td>
- <td>16-bitowa liczba całkowita bez znaku</td>
- <td><code>unsigned short</code></td>
- </tr>
- <tr>
- <td><code><a href="/en/JavaScript_typed_arrays/Int32Array" title="en/JavaScript typed arrays/Int32Array">Int32Array</a></code></td>
- <td>4</td>
- <td>32-bitowa liczba całkowita ze znakiem w zapisie dopełnienia do dwóch</td>
- <td><code>int</code></td>
- </tr>
- <tr>
- <td><code><a href="/en/JavaScript_typed_arrays/Uint32Array" title="en/JavaScript typed arrays/Uint32Array">Uint32Array</a></code></td>
- <td>4</td>
- <td>32-bitowa liczba całkowita bez znaku</td>
- <td><code>unsigned int</code></td>
- </tr>
- <tr>
- <td><code><a href="/en/JavaScript_typed_arrays/Float32Array" title="en/JavaScript typed arrays/Float32Array">Float32Array</a></code></td>
- <td>4</td>
- <td>32-bitowa liczba zmiennoprzecinkowa IEEE</td>
- <td><code>float</code></td>
- </tr>
- <tr>
- <td><code><a href="/en/JavaScript_typed_arrays/Float64Array" title="en/JavaScript typed arrays/Float64Array">Float64Array</a></code></td>
- <td>8</td>
- <td>64-bitowa liczba zmiennoprzecinkowa IEEE</td>
- <td><code>double</code></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Superklasy_tablic_reprezentujących_typy">Superklasy tablic reprezentujących typy</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <td class="header">Typ</td>
- <td class="header">Opis</td>
- </tr>
- <tr>
- <td><a href="/en-US/docs/Web/JavaScript/Typed_arrays/DataView" title="/en-US/docs/Web/JavaScript/Typed_arrays/DataView"><code>DataView</code></a></td>
- <td>The <code>DataView</code> view provides a low-level interface for reading data from and writing it to an <code><a href="https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer" title="en/JavaScript_typed_arrays/ArrayBuffer">ArrayBuffer</a></code>.</td>
- </tr>
- <tr>
- <td><a href="/en-US/docs/Web/JavaScript/Typed_arrays/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code></a> <span class="inlineIndicator" title="This API is not native.">Non native</span></td>
- <td>The <code>StringView</code> view provides a <strong><a class="external" href="http://en.wikipedia.org/wiki/C_%28programming_language%29">C</a>-like interface for strings</strong> (i.e. array of characters codes — an<a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView"> <code>ArrayBufferView</code></a> in JavaScript) based upon the JavaScript <a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a> interface,</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Używanie_widoków_z_buforami">Używanie widoków z buforami</h2>
-
-<p>Stwórzmy 16-bajtowy bufor:</p>
-
-<pre class="brush:js">var buffer = new ArrayBuffer(16);
-</pre>
-
-<p>At this point, we have a chunk of memory whose bytes are all pre-initialized to 0. There's not a lot we can do with it, though. We can confirm that it is indeed 16 bytes long, and that's about it:</p>
-
-<pre class="brush:js">if (buffer.byteLength == 16) {
- alert("Yes, it's 16 bytes.");
-} else {
- alert("Oh no, it's the wrong size!");
-}
-</pre>
-
-<p>Before we can really work with this buffer, we need to create a view. Let's create a view that treats the data in the buffer as an array of 32-bit signed integers:</p>
-
-<pre class="brush:js">var int32View = new Int32Array(buffer);
-</pre>
-
-<p>Now we can access the fields in the array just like a normal array:</p>
-
-<pre class="brush:js">for (var i=0; i&lt;int32View.length; i++) {
- int32View[i] = i*2;
-}
-</pre>
-
-<p>This fills out the 4 entries in the array (4 entries at 4 bytes each makes 16 total bytes) with the values 0, 2, 4, and 6.</p>
-
-<h3 id="Wiele_widoków_tych_samych_danych">Wiele widoków tych samych danych</h3>
-
-<p>Things start to get really interesting when you consider that you can create multiple views onto the same data. For example, given the code above, we can continue like this:</p>
-
-<pre class="brush:js">var int16View = new Int16Array(buffer);
-
-for (var i=0; i&lt;int16View.length; i++) {
- console.log("Entry " + i + ": " + int16View[i]);
-}
-</pre>
-
-<p>Here we create a 16-bit integer view that shares the same buffer as the existing 32-bit view and we output all the values in the buffer as 16-bit integers. Now we get the output 0, 0, 2, 0, 4, 0, 6, 0.</p>
-
-<p>You can go a step farther, though. Consider this:</p>
-
-<pre class="brush:js">int16View[0] = 32;
-console.log("Entry 0 in the 32-bit array is now " + int32View[0]);
-</pre>
-
-<p>The output from this is "Entry 0 in the 32-bit array is now 32". In other words, the two arrays are indeed simply views on the same data buffer, treating it as different formats. You can do this with any <a href="/en-US/docs/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses" title="JavaScript typed arrays/ArrayBufferView#Typed array subclasses">view types</a>.</p>
-
-<h2 id="Praca_ze_złożonymi_strukturami_danych">Praca ze złożonymi strukturami danych</h2>
-
-<p>By combining a single buffer with multiple views of different types, starting at different offsets into the buffer, you can interact with data objects containing multiple data types. This lets you, for example, interact with complex data structures from <a href="/en-US/docs/WebGL" title="WebGL">WebGL</a>, data files, or C structures you need to use while using <a href="/en-US/docs/js-ctypes" title="js-ctypes">js-ctypes</a>.</p>
-
-<p>Rozważ tą strukturę C:</p>
-
-<pre class="brush:cpp">struct someStruct {
- unsigned long id;
- char username[16];
- float amountDue;
-};</pre>
-
-<p>Możesz uzyskać dostęp do bufora zawierającego dane w tych formacie w ten sposób:</p>
-
-<pre class="brush:js">var buffer = new ArrayBuffer(24);
-
-// ... zczytaj dane do bufora ...
-
-var idView = new Uint32Array(buffer, 0, 1);
-var usernameView = new Uint8Array(buffer, 4, 16);
-var amountDueView = new Float32Array(buffer, 20, 1);</pre>
-
-<p>Potem możesz uzyskać dostęp, na przykład, do kwoty należnej używając <code>amountDueView[0]</code>.</p>
-
-<div class="note"><strong>Note:</strong> The <a href="http://en.wikipedia.org/wiki/Data_structure_alignment" title="http://en.wikipedia.org/wiki/Data_structure_alignment">data structure alignment</a> in a C structure is platform-dependent. Take precautions and considerations for these padding differences.</div>
-
-<h2 id="Konwersja_do_zwykłych_tablic">Konwersja do zwykłych tablic</h2>
-
-<p>After processing a typed array, it is sometimes useful to convert it back to a normal array in order to benefit from the <code>Array</code> prototype. Following is a way to do that.</p>
-
-<pre>var typedArray = new Uint8Array( [ 1, 2, 3, 4 ] ),
- normalArray = Array.apply( [], typedArray );
-normalArray.length === 4;
-normalArray.constructor === Array;
-</pre>
-
-<h2 id="Kompatybilność">Kompatybilność</h2>
-
-<p>Typed arrays are available in WebKit as well. Chrome 7 includes support for <code>ArrayBuffer</code>, <code>Float32Array</code>, <code>Int16Array</code>, and <code>Uint8Array</code>. Chrome 9 and Firefox 15 add support for <code>DataView</code> objects. Internet Explorer 10 supports all types except <code>Uint8ClampedArray</code> and <code>ArrayBuffer.prototype.slice</code>.</p>
-
-<h2 id="Specyfikacja">Specyfikacja</h2>
-
-<ul>
- <li><a class="link-https" href="http://www.khronos.org/registry/typedarray/specs/latest/">Typed Array Specification</a></li>
-</ul>
-
-<h2 id="See_also" name="See_also">Zobacz także</h2>
-
-<ul>
- <li><a href="/en-US/docs/JavaScript/Typed_arrays/Int8Array" title="Int8Array"><code>Int8Array</code></a>, <a href="/en-US/docs/JavaScript/Typed_arrays/Int16Array" title="Int8Array"><code>Int16Array</code></a>, <a href="/en-US/docs/JavaScript/Typed_arrays/Int32Array" title="Int8Array"><code>Int32Array</code></a></li>
- <li><a href="/en-US/docs/JavaScript/Typed_arrays/Uint8Array" title="Uint8Array"><code>Uint8Array</code></a>, <a href="/en-US/docs/JavaScript/Typed_arrays/Uint16Array" title="Uint8Array"><code>Uint16Array</code></a>, <a href="/en-US/docs/JavaScript/Typed_arrays/Uint32Array" title="Uint8Array"><code>Uint32Array</code></a>, <a href="/en-US/docs/JavaScript/Typed_arrays/Uint8ClampedArray" title="/en-US/docs/JavaScript/Typed_arrays/Uint8ClampedArray"><code>Uint8ClampedArray</code></a></li>
- <li><a href="/en-US/docs/JavaScript/Typed_arrays/Float32Array" title="Float32Array"><code>Float32Array</code></a>, <a href="/en-US/docs/JavaScript/Typed_arrays/Float64Array" title="Float64Array"><code>Float64Array</code></a></li>
- <li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/DataView" title="/en-US/docs/Web/JavaScript/Typed_arrays/DataView"><code>DataView</code></a></li>
- <li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code></a></li>
- <li><a href="/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding#Appendix.3A_Decode_a_Base64_string_to_Uint8Array_or_ArrayBuffer" title="/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding#Appendix.3A_Decode_a_Base64_string_to_Uint8Array_or_ArrayBuffer">Getting <code>ArrayBuffer</code>s or typed arrays from <em>Base64</em>-encoded strings</a></li>
-</ul>
-
-<div id="cke_pastebin" style="position: absolute; top: 617.817px; width: 1px; height: 1px; overflow: hidden; left: -1000px;"> </div>