aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSphinxKnight <SphinxKnight@users.noreply.github.com>2021-03-11 19:53:49 +0100
committerGitHub <noreply@github.com>2021-03-11 19:53:49 +0100
commit3d8d4fef4402f5df76c13b28d1515d290c4f7f91 (patch)
treed1b0d20f2a2b3da418bde71b7b55e3cc5ffe0da2
parentfb3c0810cfd47d46ed784c6569759661fab3f0f3 (diff)
parentc398cf9346106ca067cf3e0eaecf89a68df39518 (diff)
downloadtranslated-content-3d8d4fef4402f5df76c13b28d1515d290c4f7f91.tar.gz
translated-content-3d8d4fef4402f5df76c13b28d1515d290c4f7f91.tar.bz2
translated-content-3d8d4fef4402f5df76c13b28d1515d290c4f7f91.zip
Merge pull request #109 from Scttpr/fix/issue#104
fix: renamed constructor function to construct
-rw-r--r--files/fr/web/javascript/reference/global_objects/function/apply/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/function/apply/index.html b/files/fr/web/javascript/reference/global_objects/function/apply/index.html
index fe76177918..cd506e138f 100644
--- a/files/fr/web/javascript/reference/global_objects/function/apply/index.html
+++ b/files/fr/web/javascript/reference/global_objects/function/apply/index.html
@@ -86,7 +86,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Function/apply
}
var monTableau = [4, "Coucou monde !", false];
-var monInstance = MonConstructeur.constructor(monTableau);
+var monInstance = MonConstructeur.construct(monTableau);
console.log(monInstance.propriété1); // "Coucou monde !"
console.log(monInstance instanceof MonConstructeur); // "true"