File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
1-js/08-prototypes/04-prototype-methods Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -191,10 +191,10 @@ let clone = Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescr
191
191
192
192
193
193
- [ Object.keys(obj)] ( mdn:js/Object/keys ) / [ Object.values(obj)] ( mdn:js/Object/values ) / [ Object.entries(obj)] ( mdn:js/Object/entries ) -- returns an array of enumerable own string property names/values/key-value pairs.
194
- - [ Object.getOwnPropertySymbols(obj)] ( mdn:js/Object/getOwnPropertySymbols ) -- returns an array of all own symbolic property names .
195
- - [ Object.getOwnPropertyNames(obj)] ( mdn:js/Object/getOwnPropertyNames ) -- returns an array of all own string property names .
196
- - [ Reflect.ownKeys(obj)] ( mdn:js/Reflect/ownKeys ) -- returns an array of all own property names .
197
- - [ obj.hasOwnProperty(key)] ( mdn:js/Object/hasOwnProperty ) : it returns ` true ` if ` obj ` has its own (not inherited) property named ` key ` .
194
+ - [ Object.getOwnPropertySymbols(obj)] ( mdn:js/Object/getOwnPropertySymbols ) -- returns an array of all own symbolic keys .
195
+ - [ Object.getOwnPropertyNames(obj)] ( mdn:js/Object/getOwnPropertyNames ) -- returns an array of all own string keys .
196
+ - [ Reflect.ownKeys(obj)] ( mdn:js/Reflect/ownKeys ) -- returns an array of all own keys .
197
+ - [ obj.hasOwnProperty(key)] ( mdn:js/Object/hasOwnProperty ) : it returns ` true ` if ` obj ` has its own (not inherited) keytt named ` key ` .
198
198
199
199
We also made it clear that ` __proto__ ` is a getter/setter for ` [[Prototype]] ` and resides in ` Object.prototype ` , just as other methods.
200
200
You can’t perform that action at this time.
0 commit comments