1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
---
title: Function.prototype
slug: conflicting/Web/JavaScript/Reference/Global_Objects/Function
tags:
- Function
- JavaScript
- Property
- Prototype
translation_of: Web/JavaScript/Reference/Global_Objects/Function
translation_of_original: Web/JavaScript/Reference/Global_Objects/Function/prototype
original_slug: Web/JavaScript/Reference/Global_Objects/Function/prototype
---
<div>{{JSRef}}</div>
<p>Die <code><strong>Function.prototype</strong></code> Eigenschaft repräsentiert das {{jsxref("Function")}} Prototyp Objekt.</p>
<h2 id="Beschreibung">Beschreibung</h2>
<p>{{jsxref("Function")}} Objekte erben von <code>Function.prototype</code>. <code>Function.prototype</code> kann nicht modifiziert werden.</p>
<h2 id="Eigenschaften">Eigenschaften</h2>
<dl>
<dt>{{jsxref("Function.arguments")}} {{deprecated_inline}}</dt>
<dd>Ein Array, welches die der Funktion übergebenen Parameter enthält. Dieses ist veraltet als Eigenschaft von {{jsxref("Function")}}. Stattdessen sollte das {{jsxref("Functions/arguments", "arguments")}} Objekt in einer Funktion benutzt werden</dd>
<dt><s class="obsoleteElement">{{jsxref("Function.arity")}} {{obsolete_inline}}</s></dt>
<dd><s class="obsoleteElement">Wurde benutzt, um die Anzahl der erwarteten Argumente einer Funktion einzustellen, ist jedoch entfernt. Stattdessen kann die {{jsxref("Function.length", "length")}} Eigenschaft genutzt werden.</s></dd>
<dt>{{jsxref("Function.caller")}} {{non-standard_inline}}</dt>
<dd>Spezifizert die Funktion, die die aktuelle Funktion aufgerufen hat.</dd>
<dt>{{jsxref("Function.length")}}</dt>
<dd>Spezifizert die Anzahl der Parameter, die eine Funktion erwartet.</dd>
<dt>{{jsxref("Function.name")}}</dt>
<dd>Der Name einer Funktion.</dd>
<dt>{{jsxref("Function.displayName")}} {{non-standard_inline}}</dt>
<dd>Der angezeigte Name einer Funktion.</dd>
<dt><code>Function.prototype.constructor</code></dt>
<dd>Spezifiziert die Funktion, die ein Objekt Prototyp erstellt. Mehr Informationen bei {{jsxref("Object.prototype.constructor")}}.</dd>
</dl>
<h2 id="Methoden">Methoden</h2>
<dl>
<dt>{{jsxref("Function.prototype.apply()")}}</dt>
<dd>Führt eine Funktion aus und setzt das <em>this</em> Objekt mit einem übergebenen wert. Parameter können in einem {{jsxref("Array")}} Objekt übergeben werden.</dd>
<dt>{{jsxref("Function.prototype.bind()")}}</dt>
<dd><span id="result_box" lang="de"><span>Erstellt eine neue Funktion, die beim Aufruf einen angegebenen Wert für <em>this</em> hat, wobei die Argumentfolge vor dem Aufruf der neuen Funktion fest steht.</span></span></dd>
<dt>{{jsxref("Function.prototype.call()")}}</dt>
<dd>Führt eine Funktion aus und setzt <em>this</em> auf einen übergebenen Wert. Parameter können übergeben werden.</dd>
<dt>{{jsxref("Function.prototype.isGenerator()")}} {{non-standard_inline}}</dt>
<dd>Gibt <code>true</code> zurück, wenn die Funktion ein <a href="/de/docs/Web/JavaScript/Guide/Iterators_and_Generators">Generator</a> ist, anderfalls <code>false</code>.</dd>
<dt>{{jsxref("Function.prototype.toSource()")}} {{non-standard_inline}}</dt>
<dd>Gibt eine Stringrepräsentation des Quelltextes einer Funktion zurück. Sie überschreibt die {{jsxref("Object.prototype.toSource")}} Methode.</dd>
<dt>{{jsxref("Function.prototype.toString()")}}</dt>
<dd>Gibt eine Stringrepräsentation des Quelltextes einer Funktion zurück. Sie überschreibt die {{jsxref("Object.prototype.toString")}} Methode.</dd>
</dl>
<h2 id="Spezifikationen">Spezifikationen</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Spezifikation</th>
<th scope="col">Status</th>
<th scope="col">Kommentar</th>
</tr>
<tr>
<td>{{SpecName('ES1')}}</td>
<td>{{Spec2('ES1')}}</td>
<td>Initiale Definition. Implementiert in JavaScript 1.1</td>
</tr>
<tr>
<td>{{SpecName('ES5.1', '#sec-15.3.5.2', 'Function.prototype')}}</td>
<td>{{Spec2('ES5.1')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('ES6', '#sec-function-instances-prototype', 'Function.prototype')}}</td>
<td>{{Spec2('ES6')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('ESDraft', '#sec-function-instances-prototype', 'Function.prototype')}}</td>
<td>{{Spec2('ESDraft')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="Browserkompatibilität">Browserkompatibilität</h2>
<div>
<p>{{Compat("javascript.builtins.Function.prototype")}}</p>
</div>
<h2 id="Siehe_auch">Siehe auch</h2>
<ul>
<li>{{jsxref("Function")}}</li>
</ul>
|