V I I I
Po u r D é b u t a n t s
Ceci n’est pas un tutoriel, mais simplement une sorte de répertoire des
propriétés propres des objets « Object » et « Reflect ». Ceci est impor-
tant car ça montre la différence entre les deux objets qui chacun com-
porte une méthode permettant d’énumérer les propriétés propres de
n’importe quel objet, respectivement la méthode « Object . getOwn-
PropertyNames (objet) » pour l’objet « Object » et la méthode « Re-
flect . ownKeys (objet) » pour l’objet « Reflet ».
I. L’Objet « Object » !
Reflect
Object { … }
{…}
apply: function apply()
construct: construct()
length: 2
name: "construct"
<prototype>: ()
apply: function apply()
Les objets « Object » et « Reflect » -9/16- dimanche, 17. mars 2019
(12:12 )
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VIII
arguments: null
bind: function bind()
call: function call()
caller: null
constructor: function Function()
length: 0
name: ""
toSource: function toSource()
toString: function toString()
Symbol(Symbol.hasInstance): function
Symbol.hasInstance()
<prototype>: Object { … }
defineProperty: function defineProperty()
deleteProperty: function deleteProperty()
get: function get()
getOwnPropertyDescriptor: function getOwnProper-
tyDescriptor()
getPrototypeOf: function getPrototypeOf()
has: function has()
isExtensible: function isExtensible()
ownKeys: function ownKeys()
preventExtensions: function preventExtensions()
set: function set()
setPrototypeOf: function setPrototypeOf()
<prototype>: {…}
Attention :
« Object.getOwnPropertyNames(File) »
« Reflect.ownKeys(File) » :
<script type="text/javascript">
console.log(Object.getOwnPropertyNames(File));
</script>
<script type="text/javascript">
console.log(Reflect.ownKeys(File));
</script>
<script type="text/javascript">
console.log(Object.getOwnPropertySymbols(File));
</script>
Mots-clés :
diasfb@mail2world.com
Autre Lecture :
https://www.scribd.com/document/374738470/Le-Plus-Grand-Secret-de-La-
Creation